From 0a95a5c0a121bab952c2dab20fd73a310cf07041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Mon, 5 Feb 2018 16:07:30 +0100 Subject: [PATCH] Simple method signature for modifyconstraint! --- src/instancemanager.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instancemanager.jl b/src/instancemanager.jl index 32521be..85437a5 100644 --- a/src/instancemanager.jl +++ b/src/instancemanager.jl @@ -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