Skip to content

Commit be142a5

Browse files
authored
Remove incorrect ConstraintPrimal method in favor of fallback (#85)
1 parent 3a2e4c7 commit be142a5

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/MOI_wrapper.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -576,19 +576,6 @@ function MOI.get(
576576
return vectorize_block(model.X, block(model, ci), S)
577577
end
578578

579-
function MOI.get(
580-
model::Optimizer,
581-
attr::MOI.ConstraintPrimal,
582-
ci::MOI.ConstraintIndex{
583-
MOI.ScalarAffineFunction{Cdouble},
584-
MOI.EqualTo{Cdouble},
585-
},
586-
)
587-
MOI.check_result_index_bounds(model, attr)
588-
# TODO(odow): this isn't correct. In Ax = b, it should be Ax, not b.
589-
return model.b[ci.value]
590-
end
591-
592579
function MOI.get(
593580
model::Optimizer,
594581
attr::MOI.ConstraintDual,

0 commit comments

Comments
 (0)