Variables | |
str | GAMS_MODEL |
sys | sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
GamsWorkspace | ws = GamsWorkspace(system_directory=sys_dir) |
load_workbook | wb |
load_workbook | capacity = wb["capacity"] |
load_workbook | demand = wb["demand"] |
load_workbook | distance = wb["distance"] |
GamsWorkspace | db = ws.add_database() |
GamsWorkspace | i = db.add_set("i", 1, "Plants") |
GamsWorkspace | j = db.add_set("j", 1, "Markets") |
GamsWorkspace | capacity_param = db.add_parameter_dc("a", [i], "Capacity") |
GamsWorkspace | demand_param = db.add_parameter_dc("b", [j], "Demand") |
GamsWorkspace | distance_param = db.add_parameter_dc("d", [i, j], "Distance") |
c | key = c[0].value |
value | |
tuple | keys |
load_workbook | v = distance.cell(row=r, column=c).value |
GamsWorkspace | job = ws.add_job_from_string(GAMS_MODEL) |
GamsWorkspace | opt = ws.add_options() |
all_model_types | |
databases | |
Variable Documentation
◆ all_model_types
transport10.all_model_types |
Definition at line 104 of file transport10.py.
◆ capacity
load_workbook transport10.capacity = wb["capacity"] |
Definition at line 63 of file transport10.py.
◆ capacity_param
GamsWorkspace transport10.capacity_param = db.add_parameter_dc("a", [i], "Capacity") |
Definition at line 77 of file transport10.py.
◆ databases
transport10.databases |
Definition at line 105 of file transport10.py.
◆ db
GamsWorkspace transport10.db = ws.add_database() |
Definition at line 74 of file transport10.py.
◆ demand
load_workbook transport10.demand = wb["demand"] |
Definition at line 64 of file transport10.py.
◆ demand_param
GamsWorkspace transport10.demand_param = db.add_parameter_dc("b", [j], "Demand") |
Definition at line 78 of file transport10.py.
◆ distance
load_workbook transport10.distance = wb["distance"] |
Definition at line 65 of file transport10.py.
◆ distance_param
Definition at line 79 of file transport10.py.
◆ GAMS_MODEL
str transport10.GAMS_MODEL |
Definition at line 12 of file transport10.py.
◆ i
GamsWorkspace transport10.i = db.add_set("i", 1, "Plants") |
Definition at line 75 of file transport10.py.
◆ j
GamsWorkspace transport10.j = db.add_set("j", 1, "Markets") |
Definition at line 76 of file transport10.py.
◆ job
GamsWorkspace transport10.job = ws.add_job_from_string(GAMS_MODEL) |
Definition at line 101 of file transport10.py.
◆ key
c transport10.key = c[0].value |
Definition at line 82 of file transport10.py.
◆ keys
tuple transport10.keys |
Definition at line 93 of file transport10.py.
◆ opt
transport10.opt = ws.add_options() |
Definition at line 102 of file transport10.py.
◆ sys_dir
sys transport10.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
Definition at line 57 of file transport10.py.
◆ v
load_workbook transport10.v = distance.cell(row=r, column=c).value |
Definition at line 97 of file transport10.py.
◆ value
transport10.value |
Definition at line 84 of file transport10.py.
◆ wb
load_workbook transport10.wb |
Definition at line 60 of file transport10.py.
◆ ws
GamsWorkspace transport10.ws = GamsWorkspace(system_directory=sys_dir) |
Definition at line 58 of file transport10.py.