Infeasible Solutions - GAMS2Excel

Hi
I am running a model in GAMS and I import my data to Excel. I want to run my model for 5 different sets of parameter (5 examples). For the second and the last sets, the model has infeasible solution and it transfers the results of the first set for the second and the results of the fourth for the last set.
I do not know how to ask GAMS to keep these cells, related to the sets with infeasible solution, empty.
Thanks

\

Hi Sanaz

You could use the solvestat information for a conditional reporting: if solvestat not equal to 1 do …
You can find more on solvestat in McCarls User Guide (search for solver status) and on if statements in Gams.
I probably would set all my report parameters to zero in the case of an infeasible solution, so the actual solution will be overwritten in the excel sheet and you have a good check for the infeasibility.
Cheers
Renger

\


Modelworks
Gewerbestrasse 15
3600 Thun – Switzerland
+41 79 818 53 73
Info@modelworks.ch
blog.modelworks.ch



-----Original Message-----
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Sanaz Tayefeh Hashemi
Sent: Mittwoch, 26. Februar 2014 11:25
To: gamsworld@googlegroups.com
Subject: Infeasible Solutions - GAMS2Excel

Hi
I am running a model in GAMS and I import my data to Excel. I want to run my model for 5 different sets of parameter (5 examples). For the second and the last sets, the model has infeasible solution and it transfers the results of the first set for the second and the results of the fourth for the last set.
I do not know how to ask GAMS to keep these cells, related to the sets with infeasible solution, empty.
Thanks

\

Hi Renger
Thanks a lot for your response
Fortunately problem solved
Best Regards

\