Dear GAMS users,
I have a MIP model which I solve in a loop. For some of the points the model becomes infeasible. Instead of interrupting it, however, I want to relax it with RMIP and solve it.
My intention is to do this:
Solve My_Mod using MIP minimizing Obj;
If not feasibile,
Solve My_Mod using RMIP minimizing Obj;
Any help is appreciated.
Yonas
\
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
Yonas,
You can program the if condition based on the model status of your model like this:
Solve My_Mod using MIP minimizing Obj;
if ( My_Mod.modelstat = %ModelStat.Infeasible%
or My_Mod.modelstat = %ModelStat.Integer Infeasible%,
Solve My_Mod using RMIP minimizing Obj;
)
A list of all possible values for modelstat can be found in the Users Guide.
Best regards,
Lutz
On 11/30/2013 11:10 AM, yonas@GMAIL wrote:
Dear GAMS users,
I have a MIP model which I solve in a loop. For some of the points the
model becomes infeasible. Instead of interrupting it, however, I want to
relax it with RMIP and solve it.
My intention is to do this:
Solve My_Mod using MIP minimizing Obj;
If not feasibile,
Solve My_Mod using RMIP minimizing Obj;
Any help is appreciated.
Yonas
–
You received this message because you are subscribed to the Google
Groups “gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
–
Lutz Westermann LWestermann@gams.com
GAMS Development Corporation GAMS Software GmbH
1217 Potomac St. NW, P.O. Box 40 59
Washington DC, 20007, USA 50216 Frechen, Germany
Fon/Fax: +1 202 342-0180/1 Fon/Fax: +49 221 949-9170/1
http://www.gams.com
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.