Skip to content

Commit 53eae70

Browse files
authored
Breaking changes for MOI 0.10.0 (#169)
1 parent 4a80397 commit 53eae70

File tree

4 files changed

+149
-205
lines changed

4 files changed

+149
-205
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1515
BinaryProvider = "0.5.9"
1616
CEnum = "0.3, 0.4"
1717
Cbc_jll = "=2.10.5, ~200.1000.500"
18-
MathOptInterface = "0.9.7"
18+
MathOptInterface = "0.10"
1919
julia = "1"
2020

2121
[extras]

src/Cbc.jl

+8-6
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ end
5757

5858
# TODO(odow): remove at Cbc.jl v1.0.0.
5959
function CbcSolver(args...; kwargs...)
60-
error("""
61-
`CbcSolver` is no longer supported. If you are using JuMP, upgrade to the
62-
latest version and use `Cbc.Optimizer` instead. If you are using
63-
MathProgBase (e.g., via `lingprog`), you will need to upgrade to
64-
MathOptInterface (https://github.com/jump-dev/MathOptInterface.jl).
65-
""")
60+
return error(
61+
"""
62+
`CbcSolver` is no longer supported. If you are using JuMP, upgrade to the
63+
latest version and use `Cbc.Optimizer` instead. If you are using
64+
MathProgBase (e.g., via `lingprog`), you will need to upgrade to
65+
MathOptInterface (https://github.com/jump-dev/MathOptInterface.jl).
66+
""",
67+
)
6668
end
6769
export CbcSolver
6870

0 commit comments

Comments
 (0)