transport3 Namespace Reference

Functions

def get_data_text ()
 
def get_model_text ()
 

Variables

 ws = GamsWorkspace(system_directory = sys.argv[1])
 
 t3 = ws.add_job_from_string(get_data_text())
 
 opt = ws.add_options()
 
 all_model_types
 
 t3a = ws.add_job_from_string(get_data_text())
 
 t3b = ws.add_job_from_string(get_model_text())
 
 databases
 

Function Documentation

◆ get_data_text()

def transport3.get_data_text ( )

Definition at line 13 of file transport3.py.

13def get_data_text():
14  return '''
15  Sets
16  i canning plants / seattle, san-diego /
17  j markets / new-york, chicago, topeka / ;
18 
19  Parameters
20 
21  a(i) capacity of plant i in cases
22  / seattle 350
23  san-diego 600 /
24 
25  b(j) demand at market j in cases
26  / new-york 325
27  chicago 300
28  topeka 275 / ;
29 
30  Table d(i,j) distance in thousands of miles
31  new-york chicago topeka
32  seattle 2.5 1.7 1.8
33  san-diego 2.5 1.8 1.4 ;
34 
35  Scalar f freight in dollars per case per thousand miles /90/ ; '''
36 

◆ get_model_text()

def transport3.get_model_text ( )

Definition at line 37 of file transport3.py.

Variable Documentation

◆ all_model_types

transport3.all_model_types

Definition at line 95 of file transport3.py.

◆ databases

transport3.databases

Definition at line 104 of file transport3.py.

◆ opt

transport3.opt = ws.add_options()

Definition at line 93 of file transport3.py.

◆ t3

transport3.t3 = ws.add_job_from_string(get_data_text())

Definition at line 88 of file transport3.py.

◆ t3a

transport3.t3a = ws.add_job_from_string(get_data_text())

Definition at line 100 of file transport3.py.

◆ t3b

transport3.t3b = ws.add_job_from_string(get_model_text())

Definition at line 101 of file transport3.py.

◆ ws

transport3.ws = GamsWorkspace(system_directory = sys.argv[1])

Definition at line 84 of file transport3.py.

def get_data_text()
Definition: transport3.py:13