flp -- model for the capacitated facility location problem Parameters: - I: set of customers - J: set of facilities - d[i]: demand for customer i - M[j]: capacity of facility j - f[j]: fixed cost for using a facility in point j - c[i,j]: unit cost of servicing demand point i from facility j Returns a model, ready to be solved.
Definition at line 12 of file flp.py.
References pyscipopt.expr.quicksum().
◆ make_data() ◆ c ◆ customers list customers = ["c%s" % i for i in d]Definition at line 85 of file flp.py.
◆ d ◆ edges list edges = [(i, j) for (i, j) in x if model.getVal(x[i, j]) > EPS]Definition at line 70 of file flp.py.
◆ EPS ◆ f ◆ facilities list facilities = [j for j in y if model.getVal(y[j]) > EPS]Definition at line 71 of file flp.py.
◆ G ◆ I ◆ J ◆ M ◆ model ◆ node_color ◆ nodelist ◆ other ◆ position position = NX.drawing.layout.spring_layout(G)Definition at line 92 of file flp.py.
◆ x ◆ yRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4