Loading...
Searching...
No Matches
transport3 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_DATA)
 
GamsWorkspace opt = ws.add_options()
 
 all_model_types
 
GamsWorkspace job_data = ws.add_job_from_string(GAMS_DATA)
 
GamsWorkspace job_model = ws.add_job_from_string(GAMS_MODEL)
 
 databases
 

Variable Documentation

◆ all_model_types

transport3.all_model_types

Definition at line 92 of file transport3.py.

◆ databases

transport3.databases

Definition at line 103 of file transport3.py.

◆ GAMS_DATA

str transport3.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 14 of file transport3.py.

◆ GAMS_MODEL

str transport3.GAMS_MODEL

Definition at line 37 of file transport3.py.

◆ job

GamsWorkspace transport3.job = ws.add_job_from_string(GAMS_DATA)

Definition at line 85 of file transport3.py.

◆ job_data

GamsWorkspace transport3.job_data = ws.add_job_from_string(GAMS_DATA)

Definition at line 99 of file transport3.py.

◆ job_model

GamsWorkspace transport3.job_model = ws.add_job_from_string(GAMS_MODEL)

Definition at line 100 of file transport3.py.

◆ opt

transport3.opt = ws.add_options()

Definition at line 90 of file transport3.py.

◆ sys_dir

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

Definition at line 82 of file transport3.py.

◆ ws

GamsWorkspace transport3.ws = GamsWorkspace(system_directory=sys_dir)

Definition at line 83 of file transport3.py.