Skip to content

Commit

Permalink
add dummy SCIPSolver() to warn old users about MPB/MOI.
Browse files Browse the repository at this point in the history
  • Loading branch information
rschwarz committed Jan 4, 2019
1 parent 279fae4 commit c5d54e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SCIP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ include("managed_scip.jl")
# implementation of MOI
include("MOI_wrapper.jl")

# warn about rewrite
include("compat.jl")

end
7 changes: 7 additions & 0 deletions src/compat.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export SCIPSolver

# dummy implementation to tell users about transition to MathOptInterface
function SCIPSolver(args...; kwargs...)
error("Support for MathProgBase was dropped. " *
"Please downgrade to v0.6.1, see README for details.")
end

0 comments on commit c5d54e3

Please sign in to comment.