Variables | |
sys | sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
GamsWorkspace | ws = GamsWorkspace(system_directory=sys_dir) |
list | plants = ["Seattle", "San-Diego"] |
list | markets = ["New-York", "Chicago", "Topeka"] |
dict | capacity = {"Seattle": 350.0, "San-Diego": 600.0} |
dict | demand = {"New-York": 325.0, "Chicago": 300.0, "Topeka": 275.0} |
dict | distance |
GamsWorkspace | db = ws.add_database() |
GamsWorkspace | i = db.add_set("i", 1, "canning plants") |
GamsSet | j = GamsSet(db, "j", 1, "markets") |
GamsWorkspace | a = db.add_parameter_dc("a", [i], "capacity at plant") |
value | |
GamsWorkspace | b = db.add_parameter_dc("b", ["j"], "demand at market j in cases") |
GamsWorkspace | d = db.add_parameter_dc("d", [i, j], "distance in thousands of miles") |
int | dv_count = 0 |
end | |
vi | |
try : | |
except : | |
suppress_auto_domain_checking | |
else : | |
GamsWorkspace | db2 = ws.add_database_from_gdx("test.gdx") |
GamsWorkspace | d2 = db2["d"] |
GamsWorkspace | j_alias |
GamsWorkspace | ii = j_alias.out_db["ii"] |
GamsWorkspace | test_db = ws.add_database() |
GamsWorkspace | test_set = test_db.add_set("test", 1) |
text | |
Variable Documentation
◆ a
GamsWorkspace domain_checking.a = db.add_parameter_dc("a", [i], "capacity at plant") |
Definition at line 55 of file domain_checking.py.
◆ b
GamsWorkspace domain_checking.b = db.add_parameter_dc("b", ["j"], "demand at market j in cases") |
Definition at line 64 of file domain_checking.py.
◆ capacity
dict domain_checking.capacity = {"Seattle": 350.0, "San-Diego": 600.0} |
Definition at line 31 of file domain_checking.py.
◆ d
GamsWorkspace domain_checking.d = db.add_parameter_dc("d", [i, j], "distance in thousands of miles") |
Definition at line 73 of file domain_checking.py.
◆ d2
GamsWorkspace domain_checking.d2 = db2["d"] |
Definition at line 205 of file domain_checking.py.
◆ db
GamsWorkspace domain_checking.db = ws.add_database() |
Definition at line 43 of file domain_checking.py.
◆ db2
GamsWorkspace domain_checking.db2 = ws.add_database_from_gdx("test.gdx") |
Definition at line 204 of file domain_checking.py.
◆ demand
dict domain_checking.demand = {"New-York": 325.0, "Chicago": 300.0, "Topeka": 275.0} |
Definition at line 32 of file domain_checking.py.
◆ distance
dict domain_checking.distance |
Definition at line 33 of file domain_checking.py.
◆ dv_count
int domain_checking.dv_count = 0 |
Definition at line 108 of file domain_checking.py.
◆ else
domain_checking.else : |
Definition at line 198 of file domain_checking.py.
◆ end
domain_checking.end |
Definition at line 111 of file domain_checking.py.
◆ except
domain_checking.except : |
Definition at line 195 of file domain_checking.py.
◆ i
GamsWorkspace domain_checking.i = db.add_set("i", 1, "canning plants") |
Definition at line 46 of file domain_checking.py.
◆ ii
GamsWorkspace domain_checking.ii = j_alias.out_db["ii"] |
Definition at line 235 of file domain_checking.py.
◆ j
GamsSet domain_checking.j = GamsSet(db, "j", 1, "markets") |
Definition at line 50 of file domain_checking.py.
◆ j_alias
GamsWorkspace domain_checking.j_alias |
Definition at line 231 of file domain_checking.py.
◆ markets
list domain_checking.markets = ["New-York", "Chicago", "Topeka"] |
Definition at line 30 of file domain_checking.py.
◆ plants
list domain_checking.plants = ["Seattle", "San-Diego"] |
Definition at line 29 of file domain_checking.py.
◆ suppress_auto_domain_checking
domain_checking.suppress_auto_domain_checking |
Definition at line 196 of file domain_checking.py.
◆ sys_dir
sys domain_checking.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
Definition at line 25 of file domain_checking.py.
◆ test_db
GamsWorkspace domain_checking.test_db = ws.add_database() |
Definition at line 240 of file domain_checking.py.
◆ test_set
GamsWorkspace domain_checking.test_set = test_db.add_set("test", 1) |
Definition at line 241 of file domain_checking.py.
◆ text
domain_checking.text |
Definition at line 249 of file domain_checking.py.
◆ try
domain_checking.try : |
Definition at line 193 of file domain_checking.py.
◆ value
domain_checking.value |
Definition at line 57 of file domain_checking.py.
◆ vi
domain_checking.vi |
Definition at line 113 of file domain_checking.py.
◆ ws
GamsWorkspace domain_checking.ws = GamsWorkspace(system_directory=sys_dir) |
Definition at line 26 of file domain_checking.py.