transport7.py File Reference

This is the 7th model in a series of tutorial examples. More...

Go to the source code of this file.

Functions

def transport7.get_model_text ()
 

Variables

 transport7.ws = GamsWorkspace(system_directory = sys.argv[1])
 
 transport7.cp = ws.add_checkpoint()
 
 transport7.t7 = ws.add_job_from_string(get_model_text())
 
 transport7.checkpoint
 
 transport7.mi = cp.add_modelinstance()
 
 transport7.bmult = mi.sync_db.add_parameter("bmult", 0, "demand multiplier")
 
 transport7.opt = ws.add_options()
 
 transport7.all_model_types
 
 transport7.value
 
list transport7.bmultlist = [ 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3 ]
 
 transport7.x = mi.sync_db.add_variable("x", 2, VarType.Positive)
 
 transport7.xup = mi.sync_db.add_parameter("xup", 2, "upper bound on x")
 

Detailed Description

This is the 7th model in a series of tutorial 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.