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

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

Go to the source code of this file.

Functions

def transport9.read_set (connection, db, query_string, set_name, set_dim, set_exp="")
 
def transport9.read_parameter (connection, db, query_string, par_name, par_dim, par_exp="")
 
def transport9.write_variable (connection, db, var_name, column_names)
 
def transport9.write_results (db)
 
def transport9.read_from_access (ws)
 

Variables

str transport9.GAMS_MODEL
 
sys transport9.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None
 
GamsWorkspace transport9.ws = GamsWorkspace(system_directory=sys_dir)
 
def transport9.db = read_from_access(ws)
 
GamsWorkspace transport9.job = ws.add_job_from_string(GAMS_MODEL)
 
GamsWorkspace transport9.opt = ws.add_options()
 
 transport9.all_model_types
 
 transport9.databases
 

Detailed Description

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

Here we show:

  • How to fill a GamsDatabase by reading from MS Access
  • How to write results from a GamsDatabase into MS Access

Definition in file transport9.py.