Monday, February 11, 2013

Errmsg

After installing GAMS one of the first things to do is to change one of its more obscure options:

image

Without this you get the convenient default where error messages are not shown where the errors are. Like in:

3570     export.up(g,ce)    = explimit(g,ce) ;
****                $171                $171
3571     itr.fx(z1,g)=0; itw.fx(z1)  =0;

The actual error messages are found near the bottom of the listing file. With ERRMSG=1 we get a more reasonable behavior:

3570     export.up(g,ce)    = explimit(g,ce) ;
****                $171                $171
**** 171  Domain violation for set
3571     itr.fx(z1,g)=0; itw.fx(z1)  =0;

No comments:

Post a Comment