Functions | |
| def | make_inst1 () |
| def | make_inst2 () |
| def | make_inst3 () |
| def | mctransp (I, J, K, c, d, M) |
Variables | |
| c | |
| d | |
| int | EPS = 1.e-6 |
| I | |
| J | |
| K | |
| M | |
| def | model = mctransp(I, J, K, c, d, M) |
| def | x = model.data |
| def mctransp.make_inst1 | ( | ) |
creates example data set 1
Definition at line 51 of file mctransp.py.
References pyscipopt.Multidict.multidict().
| def mctransp.make_inst2 | ( | ) |
creates example data set 2
Definition at line 80 of file mctransp.py.
References pyscipopt.Multidict.multidict().
| def mctransp.make_inst3 | ( | ) |
creates example data set 3
Definition at line 106 of file mctransp.py.
References pyscipopt.Multidict.multidict().
| 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 14 of file mctransp.py.
References pyscipopt.expr.quicksum().
| c |
Definition at line 136 of file mctransp.py.
| d |
Definition at line 136 of file mctransp.py.
| int EPS = 1.e-6 |
Definition at line 143 of file mctransp.py.
| I |
Definition at line 136 of file mctransp.py.
| J |
Definition at line 136 of file mctransp.py.
| K |
Definition at line 136 of file mctransp.py.
| M |
Definition at line 136 of file mctransp.py.
| def x = model.data |
Definition at line 144 of file mctransp.py.