Modify a parameter within GAMS Model Instance

Hi everyone!

I am considering building my new model in GAMSPy. The mathematical structure of the model will be relatively simple, yet it will require rerunning the model multiple times with slight changes in parameters or fixed variables (in the fashion of Monte Carlo simulation).

I remember that Python API had the possibility to instantiate the model and later only modify certain parts of it. It allowed to avoid regenerating the model in every iteration. This has been described in GAMS Control section * How to modify a parameter of a GamsModelInstance using GamsModifier (transport7.py)*.

Is there a similar option in GAMSPy? I ideally would like to save some computational time and avoid regenerating a similar model in hundreds of simulations.

Thank you very much for your time!

Best,

Adam

gamspy -v 1.4.0

Hi Adam,

It’s called Frozen Solve in GAMSPy. You can find the documentation here: Frozen Solve

Muhammet

2 Likes

Thanks, Muhammet!

That’s brilliant! Exactly what I needed!

Adam

1 Like