transport7.py File Reference
This is the 7th model in a series of examples. More...
Go to the source code of this file.
Variables | |
str | transport7.GAMS_MODEL |
sys | transport7.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
GamsWorkspace | transport7.ws = GamsWorkspace(system_directory=sys_dir) |
GamsWorkspace | transport7.cp = ws.add_checkpoint() |
GamsWorkspace | transport7.job = ws.add_job_from_string(GAMS_MODEL) |
transport7.checkpoint | |
GamsWorkspace | transport7.mi = cp.add_modelinstance() |
GamsWorkspace | transport7.bmult = mi.sync_db.add_parameter("bmult", 0, "demand multiplier") |
GamsWorkspace | transport7.opt = ws.add_options() |
transport7.all_model_types | |
transport7.value | |
list | transport7.bmult_list = [0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3] |
GamsWorkspace | transport7.x = mi.sync_db.add_variable("x", 2, VarType.Positive) |
GamsWorkspace | transport7.xup = mi.sync_db.add_parameter("xup", 2, "upper bound on x") |
Detailed Description
This is the 7th model in a series of examples.
Here we show:
- How to create a GamsModelInstance from a GamsCheckpoint
- How to modify a parameter of a GamsModelInstance using GamsModifier
- How to modify a variable of a GamsModelInstance using GamsModifier
Definition in file transport7.py.