Are there any examples of how to modify multidimensional parameters with a GamsModifier? I can’t find any examples in the API tutorial, examples, documentation, or elsewhere.
Thanks
Clay
Are there any examples of how to modify multidimensional parameters with a GamsModifier? I can’t find any examples in the API tutorial, examples, documentation, or elsewhere.
Thanks
Clay
Please have a look at the transport7.py example: https://www.gams.com/latest/docs/apis/examples_python/transport7_8py_source.html
Although it doesn’t show how to modify a two dimensional parameter, it shows both the use of a scalar parameter and a two dimensional variable. Instead of adding a scalar parameter to the sync_db, you can just add a parameter with arbitrary dimension. On line 107/108 you can see how to clear and add new records to a multi dimensional parameter.
Best,
Clemens