Loading...
Searching...
No Matches
transport12.py File Reference

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

Go to the source code of this file.

Functions

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

Variables

str transport12.GAMS_MODEL
 
sys transport12.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None
 
GamsWorkspace transport12.ws = GamsWorkspace(system_directory=sys_dir)
 
GamsWorkspace transport12.cp = ws.add_checkpoint()
 
GamsWorkspace transport12.job = ws.add_job_from_string(GAMS_MODEL)
 
 transport12.checkpoint
 
GamsWorkspace transport12.mi = cp.add_modelinstance()
 
list transport12.bmult_list = [0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3]
 
GamsWorkspace transport12.db = ws.add_database()
 
GamsWorkspace transport12.scen = db.add_set("scen", 1, "")
 
GamsWorkspace transport12.bmult = db.add_parameter_dc("bmultlist", [scen])
 
GamsWorkspace transport12.zscen = db.add_parameter_dc("zscen", [scen])
 
 transport12.value
 
GamsWorkspace transport12.scenario_dict = db.add_set("scenario_dict", 3, "")
 
GamsWorkspace transport12.mi2 = cp.add_modelinstance()
 
GamsWorkspace transport12.db2 = ws.add_database()
 
GamsWorkspace transport12.scen2 = db2.add_set("scen", 1, "")
 
GamsWorkspace transport12.zscen2 = db2.add_parameter_dc("zscen", [scen2])
 
GamsWorkspace transport12.xup = db2.add_parameter("xup", 3, "")
 
GamsWorkspace transport12.scenario_dict2 = db2.add_set("scenario_dict", 3, "")
 
 transport12.output
 

Detailed Description

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

Here we show:

  • How to implement a GUSS approach using the GAMS Control API

Definition in file transport12.py.