Page 1 of 1

Iterative modeling GAMS

Posted: Wed May 22, 2019 1:43 am
by navidsamare
Hello to all,
I have written a GAMS code in DEA literature, but I have some problems.
in my code I need to for one of the parameters (called: Gama), which will increased from 0 to 5 by a step length (for example 0.1), the model be implemented for each Gama and the results are presented to excel file in different sheets. Please help me to I can solve these problems.
My code is attached.
Sincerely.

Re: Iterative modeling GAMS

Posted: Sat Jun 15, 2019 5:26 pm
by bussieck
Not sure if you were looking for this solution, but you can just use a for loop around your solve that iterates a range of gama values:

Code: Select all

for (gamax=0 to 5 by 0.5,
gama = gamax;
Solve  Rmodel using LP Minimizing eff;
...
)
The entire model is attached.

-Michael