GAMS [ Home | Support | Sales | Solvers | Documentation | Model Library | Search | Contact Us ]

emplp13.gms : checks +/- INF on =L=, =G=, and =N= equations using EMP


This model tests lp12 from the Test Library with solver EMP. In the first test
EMP generates a standard scalar model which is solved by the default lp solver.
For the second test EMP rewrites the model as MCP and solves it with the default
MCP solver.

Contributor: Jan-H. Jagla, March 2007

Small Model of Type: GAMS
$title 'checks +/- INF on =L=, =G=, and =N= equations using EMP' (EMPLP13,SEQ=385) $ontext This model tests lp12 from the Test Library with solver EMP. In the first test EMP generates a standard scalar model which is solved by the default lp solver. For the second test EMP rewrites the model as MCP and solves it with the default MCP solver. Contributor: Jan-H. Jagla, March 2007 $offtext $set modelname lp13 *use default EMP to solve lp13 $call gams %modelname% lp=emp lo=%gams.lo% $if errorlevel 1 $abort Default EMP failed on %modelname% *use EMP with NLP2MCP reformulation to solve lp13 $echo Strategy mcp > empinfo.txt $echo EmpInfoFile empinfo.txt > emp.opt $call gams %modelname% lp=emp lo=%gams.lo% optfile=1 $if errorlevel 1 $abort EMP with MCP reformulation failed on %modelname%