User Tools

Site Tools



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

Link to this comparison view

Next revision
Previous revision
gams:create_a_report_with_some_technical_information_about_the_optimzation [2007/09/28 11:39] external edit
— (current)
Line 1: Line 1:
-===== How do I create a report with some technical information about the optimzation?​ =====  
-You can save the solver status and model status along with the objective value. This also works for solves in a loop. Below is an example: 
-parameter report (*,*); 
-loop {I, 
-   solve m using nlp min z; 
-   ​report(I,'​objval'​) = m.objval; 
-   ​report(I,'​modelstat'​) = m.modelstat;​ 
-   ​report(I,'​solvestat'​) = m.solvestat;​ 
-There'​s plenty more one could include. ​ To get a list, just make a mis-spelling of one of the model suffices - this provokes GAMS/Base into giving you a list of the allowed ones: 
-      1. set by gams after each solve execution 
-         ​cutoff,​ dictfile, domusd, iterusd, line, modelstat 
-         ​nodusd,​ number, numequ, numinfes, numnlins 
-         ​numnopt,​ numnz, numredef, numvar, objest, objval 
-         ​rescalc,​ resderiv, resgen, resout, resusd 
-         ​solvestat,​ suminfes, sysident, sysver,​tryint 
-       ... 
-You may also use a [[interfaces:​send_model_status_to_a_gdx_file|gdx file to store this information]]. 
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/create_a_report_with_some_technical_information_about_the_optimzation.1190972394.txt.gz ยท Last modified: 2011/09/14 17:39 (external edit)