a model for the transportation problem
More...
Go to the source code of this file.
|
| I |
|
| J |
|
| c |
|
| d |
|
| M |
|
| model = transp(I,J,c,d,M) |
|
int | EPS = 1 |
|
| x = model.data |
|
a model for the transportation problem
Definition in file transp.py.
def transp.make_inst1 |
( |
| ) |
|
creates example data set 1
Definition at line 49 of file transp.py.
def transp.make_inst2 |
( |
| ) |
|
creates example data set 2
Definition at line 62 of file transp.py.
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 12 of file transp.py.