Variables | |
str | GAMS_MODEL |
sys | sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
GamsWorkspace | ws = GamsWorkspace(system_directory=sys_dir) |
gt | m = gt.Container(system_directory=sys_dir) |
gt | i = m.addSet("i", records=["Seattle", "San-Diego"]) |
gt | j = m.addSet("j", records=["New-York", "Chicago", "Topeka"]) |
records | |
GamsWorkspace | job = ws.add_job_from_string(GAMS_MODEL) |
GamsWorkspace | opt = ws.add_options() |
all_model_types | |
gdx | |
GamsWorkspace | cp = ws.add_checkpoint() |
gams_options | |
checkpoint | |
create_out_db | |
gt | job_out = gt.Container(os.path.join(ws.working_directory, opt.gdx), sys_dir) |
GamsWorkspace | mi = cp.add_modelinstance() |
GamsWorkspace | bmult = mi.sync_db.add_parameter("bmult", 0, "demand multiplier") |
value | |
list | bmultlist = [0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3] |
gt | gt_bmult = m.addParameter("bmult", records=1.0) |
gt | m_out = gt.Container(mi.sync_db, sys_dir) |
GamsWorkspace | x = mi.sync_db.add_variable("x", 2, VarType.Positive) |
GamsWorkspace | xup = mi.sync_db.add_parameter("xup", 2, "upper bound on x") |
gt | gt_xup = m.addParameter("xup", ["i", "j"]) |
Variable Documentation
◆ all_model_types
transport_gt.all_model_types |
Definition at line 73 of file transport_gt.py.
◆ bmult
GamsWorkspace transport_gt.bmult = mi.sync_db.add_parameter("bmult", 0, "demand multiplier") |
Definition at line 83 of file transport_gt.py.
◆ bmultlist
list transport_gt.bmultlist = [0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3] |
Definition at line 91 of file transport_gt.py.
◆ checkpoint
transport_gt.checkpoint |
Definition at line 78 of file transport_gt.py.
◆ cp
transport_gt.cp = ws.add_checkpoint() |
Definition at line 77 of file transport_gt.py.
◆ create_out_db
transport_gt.create_out_db |
Definition at line 78 of file transport_gt.py.
◆ GAMS_MODEL
str transport_gt.GAMS_MODEL |
Definition at line 14 of file transport_gt.py.
◆ gams_options
transport_gt.gams_options |
Definition at line 78 of file transport_gt.py.
◆ gdx
transport_gt.gdx |
Definition at line 74 of file transport_gt.py.
◆ gt_bmult
gt transport_gt.gt_bmult = m.addParameter("bmult", records=1.0) |
Definition at line 94 of file transport_gt.py.
◆ gt_xup
gt transport_gt.gt_xup = m.addParameter("xup", ["i", "j"]) |
Definition at line 115 of file transport_gt.py.
◆ i
gt transport_gt.i = m.addSet("i", records=["Seattle", "San-Diego"]) |
Definition at line 63 of file transport_gt.py.
◆ j
gt transport_gt.j = m.addSet("j", records=["New-York", "Chicago", "Topeka"]) |
Definition at line 64 of file transport_gt.py.
◆ job
GamsWorkspace transport_gt.job = ws.add_job_from_string(GAMS_MODEL) |
Definition at line 70 of file transport_gt.py.
◆ job_out
gt transport_gt.job_out = gt.Container(os.path.join(ws.working_directory, opt.gdx), sys_dir) |
Definition at line 79 of file transport_gt.py.
◆ m
gt transport_gt.m = gt.Container(system_directory=sys_dir) |
Definition at line 62 of file transport_gt.py.
◆ m_out
gt transport_gt.m_out = gt.Container(mi.sync_db, sys_dir) |
Definition at line 99 of file transport_gt.py.
◆ mi
GamsWorkspace transport_gt.mi = cp.add_modelinstance() |
Definition at line 82 of file transport_gt.py.
◆ opt
GamsWorkspace transport_gt.opt = ws.add_options() |
Definition at line 71 of file transport_gt.py.
◆ records
transport_gt.records |
Definition at line 65 of file transport_gt.py.
◆ sys_dir
sys transport_gt.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
Definition at line 59 of file transport_gt.py.
◆ value
transport_gt.value |
Definition at line 90 of file transport_gt.py.
◆ ws
GamsWorkspace transport_gt.ws = GamsWorkspace(system_directory=sys_dir) |
Definition at line 60 of file transport_gt.py.
◆ x
GamsWorkspace transport_gt.x = mi.sync_db.add_variable("x", 2, VarType.Positive) |
Definition at line 107 of file transport_gt.py.
◆ xup
GamsWorkspace transport_gt.xup = mi.sync_db.add_parameter("xup", 2, "upper bound on x") |
Definition at line 108 of file transport_gt.py.