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