Skip to content

Commit

Permalink
Remove incorrect ConstraintPrimal method in favor of fallback (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Dec 14, 2023
1 parent 2fa120d commit a201d08
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -657,10 +657,6 @@ function MOI.get(optimizer::Optimizer, attr::MOI.ConstraintPrimal,
MOI.check_result_index_bounds(optimizer, attr)
return vectorize_block(MOI.get(optimizer, PrimalSolutionMatrix()), block(optimizer, ci), S)
end
function MOI.get(optimizer::Optimizer, attr::MOI.ConstraintPrimal, ci::AFFEQ)
MOI.check_result_index_bounds(optimizer, attr)
return optimizer.b[ci.value]
end

function MOI.get(optimizer::Optimizer, attr::MOI.ConstraintDual,
ci::MOI.ConstraintIndex{MOI.VectorOfVariables, S}) where S<:SupportedSets
Expand Down

0 comments on commit a201d08

Please sign in to comment.