You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* JuMP/MOI to new version v0.20/0.9
* removed julia 0.7 added 1.2 and changed readme
* require julia 1
* Require -> Project.toml
* added/removed spaces based on review
Copy file name to clipboardExpand all lines: README.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,8 @@ containing the `mate` and `weight` fields.
16
16
### Perfect matching
17
17
18
18
```julia
19
-
g =CompleteGraph(4)
20
-
w =Dict{Edge,Float64}()
19
+
g =complete_graph(4)
20
+
w =Dict{Edge,Float64}()
21
21
w[Edge(1,3)] =10
22
22
w[Edge(1,4)] =0.5
23
23
w[Edge(2,3)] =11
@@ -36,17 +36,15 @@ match = minimum_weight_perfect_matching(g, w, 50)
36
36
### Maximum weight matching
37
37
38
38
A maximum weight matching is solved as a Linear Programming
39
-
problem and requires a LP solver respecting the [MathProgBase](https://github.com/JuliaOpt/MathProgBase.jl) solver
40
-
interface. See MathProgBase
41
-
[documentation](http://mathprogbasejl.readthedocs.io/en/latest/solvers.html) for more details.
39
+
problem and requires an LP optimizer for bipartite graphs and a MILP solver for general graphs respecting the [MathOptInterface](https://github.com/JuliaOpt/MathOptInterface.jl) optimizer interface. A list of solvers can be found in the [JuMP documentation](http://www.juliaopt.org/JuMP.jl/v0.19.0/installation/#Getting-Solvers-1).
42
40
43
41
```julia
44
-
using Cbc: CbcSolver #import a LP solver
45
-
g =CompleteGraph(3)
42
+
usingJuMP, Cbc#import a MILP solver
43
+
g =complete_graph(3)
46
44
w =zeros(3,3)
47
45
w[1,2] =1
48
46
w[3,2] =1
49
47
w[1,3] =1
50
-
match =maximum_weight_matching(g,CbcSolver(),w)
48
+
match =maximum_weight_matching(g,with_optimizer(Cbc.Optimizer, logLevel=0),w)
0 commit comments