transport12.py File Reference

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

Go to the source code of this file.

Functions

def transport12.get_model_text ()
 
def transport12.guss_call (dict, mi, solve_statement, opt=None, mi_opt=None, output=None)
 

Variables

 transport12.ws = GamsWorkspace(system_directory = sys.argv[1])
 
 transport12.cp = ws.add_checkpoint()
 
 transport12.t12 = ws.add_job_from_string(get_model_text())
 
 transport12.checkpoint
 
 transport12.mi = cp.add_modelinstance()
 
list transport12.bmultlist = [ 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3 ]
 
 transport12.db = ws.add_database()
 
 transport12.scen = db.add_set("scen", 1, "")
 
 transport12.bmult = db.add_parameter_dc("bmultlist", [scen])
 
 transport12.zscen = db.add_parameter_dc("zscen", [scen])
 
int transport12.i = 0
 
 transport12.value
 
 transport12.dict = db.add_set("dict",3,"")
 
 transport12.mi2 = cp.add_modelinstance()
 
 transport12.db2 = ws.add_database()
 
 transport12.scen2 = db2.add_set("scen", 1, "")
 
 transport12.zscen2 = db2.add_parameter_dc("zscen", [scen2])
 
 transport12.xup = db2.add_parameter("xup", 3, "")
 
 transport12.dict2 = db2.add_set("dict", 3, "")
 
 transport12.output
 

Detailed Description

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

Here we show:

  • How to implement a GUSS approach using the GAMS API

Definition in file transport12.py.