Skip to content

Commit

Permalink
Fix supports_constraint(::Optimizer, ::Type{VariableIndex}, ::Type{Ze…
Browse files Browse the repository at this point in the history
…roOne})
  • Loading branch information
odow committed Oct 23, 2024
1 parent 201cbed commit 2d74df8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2410,12 +2410,11 @@ end
###

function MOI.supports_constraint(
model::Optimizer,
::Optimizer,
::Type{MOI.VariableIndex},
::Type{<:Union{MOI.ZeroOne,MOI.Integer}},
)
solver = MOI.get(model, MOI.RawOptimizerAttribute("solver"))
return solver != "simplex" && solver != "ipm"
return true
end

function MOI.is_valid(
Expand Down

0 comments on commit 2d74df8

Please sign in to comment.