a model for the multi-commodity transportation problem More...
Go to the source code of this file.
Functions | |
| def | mctransp (I, J, K, c, d, M) |
| def | make_inst1 () |
| def | make_inst2 () |
| def | make_inst3 () |
Variables | |
| I | |
| J | |
| K | |
| c | |
| d | |
| M | |
| model = mctransp(I,J,K,c,d,M) | |
| int | EPS = 1 |
| x = model.data | |
a model for the multi-commodity transportation problem
Definition in file mctransp.py.
| def mctransp.make_inst1 | ( | ) |
creates example data set 1
Definition at line 50 of file mctransp.py.
| def mctransp.make_inst2 | ( | ) |
creates example data set 2
Definition at line 78 of file mctransp.py.
| def mctransp.make_inst3 | ( | ) |
creates example data set 3
Definition at line 104 of file mctransp.py.
| def mctransp.mctransp | ( | I, | |
| J, | |||
| K, | |||
| c, | |||
| d, | |||
| M | |||
| ) |
mctransp -- model for solving the Multi-commodity Transportation Problem
Parameters:
- I: set of customers
- J: set of facilities
- K: set of commodities
- c[i,j,k]: unit transportation cost on arc (i,j) for commodity k
- d[i][k]: demand for commodity k at node i
- M[j]: capacity
Returns a model, ready to be solved.
Definition at line 13 of file mctransp.py.