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 |
◆ b
GamsInteractive millco.b = m.addParameter('b', [i], records = np.array([20,30,45,30,35,30])) |
◆ c
GamsInteractive millco.c = m.addParameter('c', [j], records = np.array([8,15,50,10,17,20,30,26,15])) |
◆ closedown
◆ cost_per_haul
GamsInteractive millco.cost_per_haul = m.addParameter('cost_per_haul', records = 4) |
◆ demand
GamsInteractive millco.demand = m.addParameter('demand', [mills], records = np.array([30,35,30])) |
◆ dist
GamsInteractive millco.dist |
◆ gams
◆ i
GamsInteractive millco.i = m.addSet('i', records = ['i'+str(i) for i in range(6)], description = 'equation index') |
◆ j
GamsInteractive millco.j = m.addSet('j', records = ['j'+str(j) for j in range(9)], description = 'variable index') |
◆ m
◆ mills
GamsInteractive millco.mills = m.addSet('mills', records = ["Mill A","Mill B", "Mill C"]) |
◆ obj
◆ ship
◆ sites
GamsInteractive millco.sites = m.addSet('sites', records = ["1", "2", "3"]) |
◆ supply
GamsInteractive millco.supply = m.addParameter('supply', [sites], records = np.array([20,30,45])) |