Skip to content

Commit

Permalink
Remove incorrect ConstraintPrimal method in favor of fallback (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 8, 2023
1 parent 3a2e4c7 commit be142a5
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -576,19 +576,6 @@ function MOI.get(
return vectorize_block(model.X, block(model, ci), S)
end

function MOI.get(
model::Optimizer,
attr::MOI.ConstraintPrimal,
ci::MOI.ConstraintIndex{
MOI.ScalarAffineFunction{Cdouble},
MOI.EqualTo{Cdouble},
},
)
MOI.check_result_index_bounds(model, attr)
# TODO(odow): this isn't correct. In Ax = b, it should be Ax, not b.
return model.b[ci.value]
end

function MOI.get(
model::Optimizer,
attr::MOI.ConstraintDual,
Expand Down

0 comments on commit be142a5

Please sign in to comment.