Page 1 of 1

Generate Equation and Column Listing without solving

Posted: Mon Aug 20, 2018 1:43 pm
by chrispahm
Dear all,

I would like to know if there is a way to generate the equation and column listing of a model without actually solving it (basically dry running the model).
The background is that solving the model takes quiet some time, and for debugging I sometimes just want to check if e.g. the dollar conditionals actually work out the intended way.

Thanks a lot for your help!

Cheers,
Christoph

Re: Generate Equation and Column Listing without solving

Posted: Mon Aug 20, 2018 5:34 pm
by GabrielYin
I'm also interesting in this issue :idea:

After checking the documentation, I know that 'solve' statement takes the role of importing and generating all the equations and columns in the predefined model (https://www.gams.com/latest/docs/UG_GAM ... ionListing). Thus anyway we may still need a 'solve' statement. I guess the solve option might help for this one.

Look forward to see expert's answer.

Re: Generate Equation and Column Listing without solving

Posted: Tue Aug 21, 2018 2:13 pm
by Fred
Hi,

You could set the resource limit (reslim) to 0 (https://www.gams.com/latest/docs/UG_Gam ... MSAOreslim).
That way the solver would still be called but should terminate immediately (after a short initialization phase).

I hope this helps!

Best,
Fred

Re: Generate Equation and Column Listing without solving

Posted: Tue Aug 21, 2018 3:37 pm
by chrispahm
Hi,
Thanks a lot for that great hint Fred!
I just tried and it seems to work really nice :)

Best,
Christoph