Generate Equation and Column Listing without solving

Problems with modeling
Post Reply
chrispahm
User
User
Posts: 20
Joined: 6 years ago

Generate Equation and Column Listing without solving

Post 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
GabrielYin
User
User
Posts: 72
Joined: 6 years ago
Location: Dallas, TX, USA
Contact:

Re: Generate Equation and Column Listing without solving

Post 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.
Fred
Posts: 372
Joined: 7 years ago

Re: Generate Equation and Column Listing without solving

Post 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
chrispahm
User
User
Posts: 20
Joined: 6 years ago

Re: Generate Equation and Column Listing without solving

Post by chrispahm »

Hi,
Thanks a lot for that great hint Fred!
I just tried and it seems to work really nice :)

Best,
Christoph
Attachments
Equation Listing for Symbol
Equation Listing for Symbol
Post Reply