Search found 5 matches

by chidia
1 month ago
Forum: Syntax
Topic: Average of results replicas
Replies: 1
Views: 216

Average of results replicas

Distribuzione Beta.gms Hello, after solving the model and applying it 4 times, I have to average the results of the 4 replicas (the results are represented by the variable z). For each j, I have to get the average of the "z (l)". I tried this way but I get the same result for all "j's". Can someone...
by chidia
1 month ago
Forum: Syntax
Topic: replicas model
Replies: 2
Views: 148

Re: replicas model

Thank you for reply!

I did as you said but the model generates the same random variables. So, I have a matrix with 20000 equal results. How can i make generate different variables for each l?
Thanks so much.
Diana
by chidia
1 month ago
Forum: Syntax
Topic: replicas model
Replies: 2
Views: 148

replicas model

Hi,
after generating from a normal distribution a vector of random variables I solve a model. Now I need to replicate the generation and the resulting model 20000 times. how can I do?
Thanks for your help

Diana
by chidia
1 month ago
Forum: Syntax
Topic: creation of vectors from normal distribution
Replies: 3
Views: 189

Re: creation of vectors from normal distribution

solution.png Hi Renger! Thank you for your answer. I tried to add the index "p" to the vector a (i, j), becoming a (i, j, p) but I don't get what I want. parameter a(i,j,p); a(i,j,p)= normal(x(j,i),t(j,p)); parameter b(r,j,q); b(r,j,q)= normal(y(j,r),z(j,q)); In fact, in the results (you find a scr...
by chidia
1 month ago
Forum: Syntax
Topic: creation of vectors from normal distribution
Replies: 3
Views: 189

creation of vectors from normal distribution

Untitled_1.gms Hello, I have a problem programming a CCR model with inputs and outputs. I need to extract the values to be used as input and output from a normal distribution. For this, I thought of creating two vectors of random variables (a and b) by extracting the values (through the normal func...