Skip to content

Commit 33c0a2b

Browse files
authored
Update README.md
1 parent 7079513 commit 33c0a2b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,12 @@ julia> f, F, labels = multiroute_flow(flow_graph, 1, 8, capacity_matrix, algorit
7777

7878
## Mincost flow
7979

80-
Mincost flow is solving a linear optimization problem and thus requires a LP solver
81-
defined by [MathProgBase.jl](http://mathprogbasejl.readthedocs.io).
80+
Mincost flow is solving a linear optimization problem and thus requires a LP optimizer
81+
defined by [MathOptInterface.jl](https://www.juliaopt.org/MathOptInterface.jl/stable/).
8282

8383
```julia
8484
using SparseArrays: spzeros
8585
import Clp
86-
using JuMP: with_optimizer
8786

8887
g = lg.DiGraph(6)
8988
lg.add_edge!(g, 5, 1)
@@ -106,5 +105,5 @@ demand[4,6] = 1
106105
node_demand = spzeros(6)
107106
capacity = ones(6,6)
108107

109-
flow = mincost_flow(g, node_demand, capacity, cost, with_optimizer(Clp.Optimizer), edge_demand=demand, source_nodes=[5], sink_nodes=[6])
108+
flow = mincost_flow(g, node_demand, capacity, cost, Clp.Optimizer, edge_demand=demand, source_nodes=[5], sink_nodes=[6])
110109
```

0 commit comments

Comments
 (0)