Reply-to: gamsworld@googlegroups.com
Hi all,
We are working on the interaction between GAMS and Matlab. And we are using the following command to call GAMS in Matlab.
[r,c,z,s, EC, x, y] = gams(gamsfile);
As you can see, we are requesting 7 outputs and “gamsfile” is the file name of a .gms file.
It works fine but the problem is when there is an infeasible solution in “gamsfile”, this command will provide the solutions just like a normal completion.
Is it possible gams() in Matlab can return some message to inform us there is an infeasible solution??
Thanks.
–
Best regards,
Peng (Dennis) Wei
\
Lili Du
Research Associate
NEXTRANS CENTER
USDOT Region V Regional UTC
3000 Kent Avenue
West Lafayette, IN 47906
765-496-9768 (office)
ldu@purdue.edu
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
Dennis,
To handle this fully copy the solver and model status to scalars in your model and add them to the list of returned args. Shortest way is to assert in matlab that the values are the expected ones but you can handle a range of returns if you need to.
-steve
Sent on the Sprint® Now Network from my BlackBerry®
From: Lili Du
Sender: gamsworld@googlegroups.com
Date: Mon, 30 May 2011 12:30:54 -0400
To:
ReplyTo: gamsworld@googlegroups.com
Cc:
Subject: claim infeasible solution in GAMS
Hi all,
We are working on the interaction between GAMS and Matlab. And we are using the following command to call GAMS in Matlab.
[r,c,z,s, EC, x, y] = gams(gamsfile);
As you can see, we are requesting 7 outputs and “gamsfile” is the file name of a .gms file.
It works fine but the problem is when there is an infeasible solution in “gamsfile”, this command will provide the solutions just like a normal completion.
Is it possible gams() in Matlab can return some message to inform us there is an infeasible solution??
Thanks.
–
Best regards,
Peng (Dennis) Wei
\
Lili Du
Research Associate
NEXTRANS CENTER
USDOT Region V Regional UTC
3000 Kent Avenue
West Lafayette, IN 47906
765-496-9768 (office)
ldu@purdue.edu
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
Hello All,'I have attached my GAMS code for Unit Commitment.
I have able to run the code when I consider Pload & Qload for single hours each. All hours are tested for Pload & Qload individually & I can find the optimal solution.
But the problem arises when I try to go for more than one hour together i.e. if I go for 1st hour & second hour combined at the very first instant I am getting the solution is infeasible.
I have tried the above mentioned single case for each hour independently for Pload & Qload in the GAMS trial version 24.3.3 & have used the NEOS solver as well single hours of Pload & Qload & also combining all 14 hours of Pload & Qload together but it is giving infeasible solution.
If anybody can help at the earliest as I have to meet deadlines.
Regards,
KS
Attachments-275/test_hours.gms