Loading...
Searching...
No Matches
millco Namespace Reference

Variables

GamsInteractive gams = GamsInteractive()
 
GamsInteractive m = gams.exchange_container
 
GamsInteractive sites = m.addSet('sites', records = ["1", "2", "3"])
 
GamsInteractive mills = m.addSet('mills', records = ["Mill A","Mill B", "Mill C"])
 
GamsInteractive dist
 
GamsInteractive supply = m.addParameter('supply', [sites], records = np.array([20,30,45]))
 
GamsInteractive demand = m.addParameter('demand', [mills], records = np.array([30,35,30]))
 
GamsInteractive cost_per_haul = m.addParameter('cost_per_haul', records = 4)
 
GamsInteractive ship = m.addVariable('ship', 'positive', [sites, mills])
 
GamsInteractive obj = m.addVariable('obj', 'free')
 
GamsInteractive i = m.addSet('i', records = ['i'+str(i) for i in range(6)], description = 'equation index')
 
GamsInteractive j = m.addSet('j', records = ['j'+str(j) for j in range(9)], description = 'variable index')
 
GamsInteractive A
 
GamsInteractive b = m.addParameter('b', [i], records = np.array([20,30,45,30,35,30]))
 
GamsInteractive c = m.addParameter('c', [j], records = np.array([8,15,50,10,17,20,30,26,15]))
 
GamsInteractive x = m.addVariable('x', 'positive', [j])
 
 closedown
 

Variable Documentation

◆ A

GamsInteractive millco.A
Initial value:
1= m.addParameter('A', [i,j], records = np.array([[1,1,1,0,0,0,0,0,0],
2 [0,0,0,1,1,1,0,0,0],
3 [0,0,0,0,0,0,1,1,1],
4 [1,0,0,1,0,0,1,0,0],
5 [0,1,0,0,1,0,0,1,0],
6 [0,0,1,0,0,1,0,0,1]]))

Definition at line 67 of file millco.py.

◆ b

GamsInteractive millco.b = m.addParameter('b', [i], records = np.array([20,30,45,30,35,30]))

Definition at line 73 of file millco.py.

◆ c

GamsInteractive millco.c = m.addParameter('c', [j], records = np.array([8,15,50,10,17,20,30,26,15]))

Definition at line 74 of file millco.py.

◆ closedown

millco.closedown

Definition at line 94 of file millco.py.

◆ cost_per_haul

GamsInteractive millco.cost_per_haul = m.addParameter('cost_per_haul', records = 4)

Definition at line 36 of file millco.py.

◆ demand

GamsInteractive millco.demand = m.addParameter('demand', [mills], records = np.array([30,35,30]))

Definition at line 35 of file millco.py.

◆ dist

GamsInteractive millco.dist
Initial value:
1= m.addParameter('dist', [sites, mills], records = np.array([[ 8,15,50],
2 [10,17,20],
3 [30,26,15]]))

Definition at line 31 of file millco.py.

◆ gams

GamsInteractive millco.gams = GamsInteractive()

Definition at line 22 of file millco.py.

◆ i

GamsInteractive millco.i = m.addSet('i', records = ['i'+str(i) for i in range(6)], description = 'equation index')

Definition at line 65 of file millco.py.

◆ j

GamsInteractive millco.j = m.addSet('j', records = ['j'+str(j) for j in range(9)], description = 'variable index')

Definition at line 66 of file millco.py.

◆ m

GamsInteractive millco.m = gams.exchange_container

Definition at line 26 of file millco.py.

◆ mills

GamsInteractive millco.mills = m.addSet('mills', records = ["Mill A","Mill B", "Mill C"])

Definition at line 30 of file millco.py.

◆ obj

GamsInteractive millco.obj = m.addVariable('obj', 'free')

Definition at line 42 of file millco.py.

◆ ship

GamsInteractive millco.ship = m.addVariable('ship', 'positive', [sites, mills])

Definition at line 41 of file millco.py.

◆ sites

GamsInteractive millco.sites = m.addSet('sites', records = ["1", "2", "3"])

Definition at line 29 of file millco.py.

◆ supply

GamsInteractive millco.supply = m.addParameter('supply', [sites], records = np.array([20,30,45]))

Definition at line 34 of file millco.py.

◆ x

GamsInteractive millco.x = m.addVariable('x', 'positive', [j])

Definition at line 75 of file millco.py.