Go to the source code of this file.
Functions | |
def | transport_gt.get_model_text () |
Variables | |
transport_gt.ws = GamsWorkspace(system_directory = sys.argv[1]) | |
transport_gt.m = gt.Container() | |
transport_gt.i = m.addSet('i', records=[ "Seattle", "San-Diego" ]) | |
transport_gt.j = m.addSet('j', records=[ "New-York", "Chicago", "Topeka" ]) | |
transport_gt.records | |
transport_gt.tm = ws.add_job_from_string(get_model_text()) | |
transport_gt.opt = ws.add_options() | |
transport_gt.all_model_types | |
transport_gt.gdx | |
transport_gt.cp = ws.add_checkpoint() | |
transport_gt.gams_options | |
transport_gt.checkpoint | |
transport_gt.create_out_db | |
transport_gt.tmOut = gt.Container(os.path.join(ws.working_directory, opt.gdx)) | |
transport_gt.mi = cp.add_modelinstance() | |
transport_gt.bmult = mi.sync_db.add_parameter("bmult", 0, "demand multiplier") | |
transport_gt.value | |
list | transport_gt.bmultlist = [ 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3 ] |
transport_gt.gt_bmult = m.addParameter('bmult', records=1.0); | |
transport_gt.mOut = gt.Container(mi.sync_db) | |
transport_gt.x = mi.sync_db.add_variable("x", 2, VarType.Positive) | |
transport_gt.xup = mi.sync_db.add_parameter("xup", 2, "upper bound on x") | |
transport_gt.gt_xup = m.addParameter('xup', ['i','j']); | |
Detailed Description
In this tutorial example we show how GAMS Transfer and the OO API can work together. Essentially, the Transfer Container takes on the role of GAMSDatabase. This example combines elements from transport4.py and transport7.py.
Definition in file transport_gt.py.