Skip to content

Commit 2d74df8

Browse files
committed
Fix supports_constraint(::Optimizer, ::Type{VariableIndex}, ::Type{ZeroOne})
1 parent 201cbed commit 2d74df8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/MOI_wrapper.jl

+2-3
Original file line numberDiff line numberDiff line change
@@ -2410,12 +2410,11 @@ end
24102410
###
24112411

24122412
function MOI.supports_constraint(
2413-
model::Optimizer,
2413+
::Optimizer,
24142414
::Type{MOI.VariableIndex},
24152415
::Type{<:Union{MOI.ZeroOne,MOI.Integer}},
24162416
)
2417-
solver = MOI.get(model, MOI.RawOptimizerAttribute("solver"))
2418-
return solver != "simplex" && solver != "ipm"
2417+
return true
24192418
end
24202419

24212420
function MOI.is_valid(

0 commit comments

Comments
 (0)