Functions | |
| def | make_inst1 () |
| def | make_inst2 () |
| def | transp (I, J, c, d, M) |
Variables | |
| c | |
| d | |
| int | EPS = 1.e-6 |
| I | |
| J | |
| M | |
| def | model = transp(I, J, c, d, M) |
| def | x = model.data |
| def transp.make_inst1 | ( | ) |
creates example data set 1
Definition at line 50 of file transp.py.
References pyscipopt.Multidict.multidict().
| def transp.make_inst2 | ( | ) |
creates example data set 2
Definition at line 63 of file transp.py.
References pyscipopt.Multidict.multidict().
| def transp.transp | ( | I, | |
| J, | |||
| c, | |||
| d, | |||
| M | |||
| ) |
transp -- model for solving the transportation problem
Parameters:
I - set of customers
J - set of facilities
c[i,j] - unit transportation cost on arc (i,j)
d[i] - demand at node i
M[j] - capacity
Returns a model, ready to be solved.
Definition at line 13 of file transp.py.
References pyscipopt.expr.quicksum().