User Tools

Site Tools


interfaces:send_model_status_to_a_gdx_file

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
interfaces:send_model_status_to_a_gdx_file [2007/11/07 23:29]
Franz Nelissen
interfaces:send_model_status_to_a_gdx_file [2010/02/19 10:22] (current)
support
Line 4: Line 4:
  
 Currently model attributes can not be  stored directly ​ in a gdx file. However you can save the model status plus some other model attributes ​ Currently model attributes can not be  stored directly ​ in a gdx file. However you can save the model status plus some other model attributes ​
-in a parameter and write that parameter to a gdxfile.+in a parameter and write that parameter to a gdx file.
 <​code>​ <​code>​
-... +$call '​gamslib 1' 
-solve transport min z using lp; +$include trnsport.gms
 parameter modrep; parameter modrep;
 modrep('​transport','​solvestat'​) = transport.solvestat;​ modrep('​transport','​solvestat'​) = transport.solvestat;​
Line 14: Line 13:
 modrep('​transport','​resusd' ​  ) = transport.resusd;​ modrep('​transport','​resusd' ​  ) = transport.resusd;​
 modrep('​transport','​objval'​) ​   = transport.objval;​ modrep('​transport','​objval'​) ​   = transport.objval;​
 +display modrep;
 Execute_Unload "​stat.gdx",​modrep; ​             Execute_Unload "​stat.gdx",​modrep; ​            
 </​code>​ </​code>​
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY interfaces/send_model_status_to_a_gdx_file.txt · Last modified: 2010/02/19 10:22 by support