Functions | |
def | terminate (gdx_h, opt_h, rc) |
def | report_gdx_error (gdx_h, s) |
def | write_model_data (gdx_h, gdx_file) |
def | call_gams (opt_h, sys_dir, model) |
def | read_solution_data (gdx_h, gdx_file) |
Variables | |
argparse | parser = argparse.ArgumentParser() |
nargs | |
default | |
argparse | args = parser.parse_args() |
gdx | gdx_h = gdx.new_gdxHandle_tp() |
opt | opt_h = opt.new_optHandle_tp() |
argparse | sys_dir = args.sysDir |
tuple | model |
gdx | rc = gdx.gdxCreateD(gdx_h, sys_dir, gdx.GMS_SSSIZE) |
def | status = write_model_data(gdx_h, "demanddata.gdx") |
Function Documentation
◆ call_gams()
def core_example2.call_gams | ( | opt_h, | |
sys_dir, | |||
model | |||
) |
Definition at line 55 of file core_example2.py.
◆ read_solution_data()
def core_example2.read_solution_data | ( | gdx_h, | |
gdx_file | |||
) |
Definition at line 74 of file core_example2.py.
References report_gdx_error().
◆ report_gdx_error()
def core_example2.report_gdx_error | ( | gdx_h, | |
s | |||
) |
Definition at line 14 of file core_example2.py.
Referenced by read_solution_data(), and write_model_data().
◆ terminate()
def core_example2.terminate | ( | gdx_h, | |
opt_h, | |||
rc | |||
) |
Definition at line 8 of file core_example2.py.
◆ write_model_data()
def core_example2.write_model_data | ( | gdx_h, | |
gdx_file | |||
) |
Definition at line 19 of file core_example2.py.
References report_gdx_error().
Variable Documentation
◆ args
argparse core_example2.args = parser.parse_args() |
Definition at line 114 of file core_example2.py.
◆ default
core_example2.default |
Definition at line 113 of file core_example2.py.
◆ gdx_h
gdx core_example2.gdx_h = gdx.new_gdxHandle_tp() |
Definition at line 116 of file core_example2.py.
◆ model
tuple core_example2.model |
Definition at line 120 of file core_example2.py.
◆ nargs
core_example2.nargs |
Definition at line 113 of file core_example2.py.
◆ opt_h
opt core_example2.opt_h = opt.new_optHandle_tp() |
Definition at line 117 of file core_example2.py.
◆ parser
argparse core_example2.parser = argparse.ArgumentParser() |
Definition at line 111 of file core_example2.py.
◆ rc
Definition at line 128 of file core_example2.py.
◆ status
def core_example2.status = write_model_data(gdx_h, "demanddata.gdx") |
Definition at line 135 of file core_example2.py.
◆ sys_dir
argparse core_example2.sys_dir = args.sysDir |
Definition at line 119 of file core_example2.py.