Skip to content

Commit

Permalink
Breaking changes for MOI 0.10.0 (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Sep 7, 2021
1 parent 4a80397 commit 53eae70
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 205 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
BinaryProvider = "0.5.9"
CEnum = "0.3, 0.4"
Cbc_jll = "=2.10.5, ~200.1000.500"
MathOptInterface = "0.9.7"
MathOptInterface = "0.10"
julia = "1"

[extras]
Expand Down
14 changes: 8 additions & 6 deletions src/Cbc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ end

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

Expand Down
Loading

0 comments on commit 53eae70

Please sign in to comment.