Skip to content

Commit

Permalink
Add supports
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Nov 10, 2023
1 parent 895b731 commit b5cdefd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ function _variable_dual_attribute(attr::MOI.ConstraintDualStart)
return MOI.VariablePrimalStart()
end

MOI.supports(::DualOptimizer, ::MOI.VariablePrimalStart, ::Type{MOI.VariableIndex}) = true

function MOI.set(
optimizer::DualOptimizer,
::MOI.VariablePrimalStart,
Expand Down Expand Up @@ -393,6 +395,14 @@ function MOI.get(
end
end

function MOI.supports(
::DualOptimizer,
::Union{MOI.ConstraintDualStart,MOI.ConstraintPrimalStart},
::Type{<:MOI.ConstraintIndex},
)
return true
end

function MOI.set(
optimizer::DualOptimizer,
attr::MOI.ConstraintDualStart,
Expand Down

0 comments on commit b5cdefd

Please sign in to comment.