Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Commit

Permalink
Simple method signature for modifyconstraint!
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Feb 5, 2018
1 parent db3dd11 commit 0a95a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/instancemanager.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function MOI.canmodifyconstraint(m::InstanceManager, cindex::CI, change)
return true
end

function MOI.modifyconstraint!(m::InstanceManager, cindex::CI{F}, change::Union{F, MOI.AbstractFunctionModification}) where F<:MOI.AbstractFunction
function MOI.modifyconstraint!(m::InstanceManager, cindex::CI, change)
if m.mode == Automatic && m.state == AttachedSolver && !MOI.canmodifyconstraint(m.solver, cindex, typeof(change))
resetsolver!(m)
end
Expand Down

0 comments on commit 0a95a5c

Please sign in to comment.