From 0658bf2722aa3fa2f0ac55ed92c53c29fa7e7e69 Mon Sep 17 00:00:00 2001 From: Alinson S Xavier Date: Thu, 27 Aug 2020 09:58:03 -0500 Subject: [PATCH] Remove JuMPSolver.add_constraint check --- src/julia/setup.jl | 3 ++- src/julia/src/jump_solver.jl | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/julia/setup.jl b/src/julia/setup.jl index e8b911e..2f3cc72 100644 --- a/src/julia/setup.jl +++ b/src/julia/setup.jl @@ -4,4 +4,5 @@ using Pkg Pkg.instantiate() Pkg.build("CPLEX") Pkg.build("Gurobi") -Pkg.build("PyCall") \ No newline at end of file +Pkg.build("PyCall") + diff --git a/src/julia/src/jump_solver.jl b/src/julia/src/jump_solver.jl index c041c12..9aae03a 100644 --- a/src/julia/src/jump_solver.jl +++ b/src/julia/src/jump_solver.jl @@ -222,8 +222,7 @@ end set_branching_priorities(self, priorities) = @warn "JuMPSolver: set_branching_priorities not implemented" - add_constraint(self, constraint) = - error("JuMPSolver.add_constraint should never be called") + add_constraint(self, constraint) = nothing clear_warm_start(self) = error("JuMPSolver.clear_warm_start should never be called")