model for solving the capacitated facility location problem More...
Go to the source code of this file.
Namespaces | |
| flp | |
Functions | |
| def | flp (I, J, d, M, f, c) |
| def | make_data () |
Variables | |
| c | |
| list | customers = ["c%s" % i for i in d] |
| d | |
| list | edges = [(i, j) for (i, j) in x if model.getVal(x[i, j]) > EPS] |
| int | EPS = 1.e-6 |
| f | |
| list | facilities = [j for j in y if model.getVal(y[j]) > EPS] |
| G = NX.Graph() | |
| I | |
| J | |
| M | |
| def | model = flp(I, J, d, M, f, c) |
| node_color | |
| nodelist | |
| list | other = [j for j in y if j not in facilities] |
| position = NX.drawing.layout.spring_layout(G) | |
| x | |
| y | |
model for solving the capacitated facility location problem
Definition in file flp.py.