Loading...
Searching...
No Matches
transport2 Namespace Reference

Variables

str GAMS_DATA
 
str GAMS_MODEL
 
sys sys_dir = sys.argv[1] if len(sys.argv) > 1 else None
 
GamsWorkspace ws = GamsWorkspace(system_directory=sys_dir)
 
GamsWorkspace job = ws.add_job_from_string(GAMS_MODEL)
 
GamsWorkspace opt = ws.add_options()
 

Variable Documentation

◆ GAMS_DATA

str transport2.GAMS_DATA
Initial value:
1= """
2Set
3 i 'canning plants' / seattle, san-diego /
4 j 'markets' / new-york, chicago, topeka /;
5
6Parameter
7 a(i) 'capacity of plant i in cases'
8 / seattle 350
9 san-diego 600 /
10
11 b(j) 'demand at market j in cases'
12 / new-york 325
13 chicago 300
14 topeka 275 /;
15
16Table d(i,j) 'distance in thousands of miles'
17 new-york chicago topeka
18 seattle 2.5 1.7 1.8
19 san-diego 2.5 1.8 1.4;
20
21Scalar f 'freight in dollars per case per thousand miles' / 90 /;
22"""

Definition at line 11 of file transport2.py.

◆ GAMS_MODEL

str transport2.GAMS_MODEL

Definition at line 34 of file transport2.py.

◆ job

GamsWorkspace transport2.job = ws.add_job_from_string(GAMS_MODEL)

Definition at line 81 of file transport2.py.

◆ opt

GamsWorkspace transport2.opt = ws.add_options()

Definition at line 82 of file transport2.py.

◆ sys_dir

sys transport2.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None

Definition at line 75 of file transport2.py.

◆ ws

GamsWorkspace transport2.ws = GamsWorkspace(system_directory=sys_dir)

Definition at line 76 of file transport2.py.