User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
gams:call_gams_within_gams [2017/09/02 19:07]
gams:call_gams_within_gams [2018/10/03 13:20] (current)
Stefan Vigerske
Line 15: Line 15:
- +If using the GAMS IDE, then the log of a model if called by ''​$call =gams your_model.gms''​ or ''​execute "gams trnsport.gms";''​ will not be shown in the process window of the GAMS IDE and will not be accessible ​after the model run. To make the log also appear in the GAMS IDE process window, add the following lines to your model:
-Please note the log of a model if called by ''​$call =gams your_model.gms''​ or ''​execute "gams trnsport.gms";''​ will be invisible ​and lost after the model run. To avoid thisjust add the following lines to you model to echo the log file into the process window or the console (if GAMS is executed via the command line).+
 <​code>​ <​code>​
 $setglobal ide "​ide=%gams.ide% lo=%gams.lo% errorlog=%gams.errorlog% errmsg=1"​ $setglobal ide "​ide=%gams.ide% lo=%gams.lo% errorlog=%gams.errorlog% errmsg=1"​
Line 28: Line 27:
 abort$errorlevel '​your_model failed';​ abort$errorlevel '​your_model failed';​
 </​code>​ </​code>​
 +Note, that also other options that have been set for the main GAMS run are not automatically passed on. For example, if you use an alternative license file, then you may want to add ''​license=%gams.license%''​ to the GAMS call.
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/call_gams_within_gams.txt · Last modified: 2018/10/03 13:20 by Stefan Vigerske