Generate Equation and Column Listing without solving

Problems with modeling
Post Reply
chrispahm
User
User
Posts: 9
Joined: 8 months ago

Generate Equation and Column Listing without solving

Post by chrispahm » 3 months ago

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: 53
Joined: 8 months ago
Location: Dallas, TX, USA

Re: Generate Equation and Column Listing without solving

Post by GabrielYin » 3 months ago

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: 70
Joined: 2 years ago

Re: Generate Equation and Column Listing without solving

Post by Fred » 2 months ago

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: 9
Joined: 8 months ago

Re: Generate Equation and Column Listing without solving

Post by chrispahm » 2 months ago

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

Best,
Christoph
Attachments
equation.PNG
Equation Listing for Symbol

Post Reply