Functions | |
def | read_set (connection, db, query_string, set_name, set_dim, set_exp="") |
def | read_parameter (connection, db, query_string, par_name, par_dim, par_exp="") |
def | write_variable (connection, db, var_name, column_names) |
def | write_results (db) |
def | read_from_access (ws) |
Variables | |
str | GAMS_MODEL |
sys | sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
GamsWorkspace | ws = GamsWorkspace(system_directory=sys_dir) |
def | db = read_from_access(ws) |
GamsWorkspace | job = ws.add_job_from_string(GAMS_MODEL) |
GamsWorkspace | opt = ws.add_options() |
all_model_types | |
databases | |
Function Documentation
◆ read_from_access()
def transport9.read_from_access | ( | ws | ) |
Definition at line 167 of file transport9.py.
References read_parameter(), and read_set().
◆ read_parameter()
def transport9.read_parameter | ( | connection, | |
db, | |||
query_string, | |||
par_name, | |||
par_dim, | |||
par_exp = "" |
|||
) |
Definition at line 86 of file transport9.py.
Referenced by read_from_access().
◆ read_set()
def transport9.read_set | ( | connection, | |
db, | |||
query_string, | |||
set_name, | |||
set_dim, | |||
set_exp = "" |
|||
) |
Definition at line 57 of file transport9.py.
Referenced by read_from_access().
◆ write_results()
def transport9.write_results | ( | db | ) |
Definition at line 154 of file transport9.py.
References write_variable().
◆ write_variable()
def transport9.write_variable | ( | connection, | |
db, | |||
var_name, | |||
column_names | |||
) |
Definition at line 115 of file transport9.py.
Referenced by write_results().
Variable Documentation
◆ all_model_types
transport9.all_model_types |
Definition at line 223 of file transport9.py.
◆ databases
transport9.databases |
Definition at line 224 of file transport9.py.
◆ db
def transport9.db = read_from_access(ws) |
Definition at line 217 of file transport9.py.
◆ GAMS_MODEL
str transport9.GAMS_MODEL |
Definition at line 12 of file transport9.py.
◆ job
GamsWorkspace transport9.job = ws.add_job_from_string(GAMS_MODEL) |
Definition at line 220 of file transport9.py.
◆ opt
transport9.opt = ws.add_options() |
Definition at line 221 of file transport9.py.
◆ sys_dir
sys transport9.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
Definition at line 213 of file transport9.py.
◆ ws
GamsWorkspace transport9.ws = GamsWorkspace(system_directory=sys_dir) |
Definition at line 214 of file transport9.py.