Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Apr 2, 2024
1 parent ea1871c commit 28d3c77
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/MOI/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3653,22 +3653,21 @@ end
_function_enums(::Type{<:MOI.ScalarAffineFunction}) = (AFFINE,)
_function_enums(::Type{<:MOI.ScalarQuadraticFunction}) = (QUADRATIC,)
_function_enums(::Type{<:MOI.ScalarNonlinearFunction}) = (SCALAR_NONLINEAR,)

function _function_enums(::Type{<:MOI.AbstractVectorFunction})
return (INDICATOR, SOS, RSOC, SOS_SET)
end
_function_enums(::Type{<:MOI.VectorAffineFunction}) = (INDICATOR,)
_function_enums(::Type{<:MOI.VectorOfVariables}) = (SOS, RSOC)

function MOI.get(
model::Optimizer,
::MOI.ListOfConstraintIndices{F,S},
) where {
S,
F<:Union{
MOI.ScalarAffineFunction{Float64},
MOI.VectorAffineFunction{Float64},
MOI.ScalarQuadraticFunction{Float64},
MOI.ScalarNonlinearFunction,
MOI.VectorAffineFunction{Float64},
MOI.VectorOfVariables,
},
S,
}
indices = MOI.ConstraintIndex{F,S}[]
for (key, info) in model.affine_constraint_info
Expand Down

0 comments on commit 28d3c77

Please sign in to comment.