Skip to content

Commit 2bf9558

Browse files
authored
Remove incorrect getter for DualObjectiveValue (#207)
1 parent 5b486c3 commit 2bf9558

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/AmplNLWriter.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,4 @@ function MOI.get(
352352
return MOI.get(model.results, attr, ci)
353353
end
354354

355-
function MOI.get(model::Optimizer, attr::MOI.DualObjectiveValue)
356-
MOI.check_result_index_bounds(model, attr)
357-
# TODO(odow): replace this with the proper dual objective.
358-
return MOI.get(model, MOI.ObjectiveValue())
359-
end
360-
361-
end
355+
end # module

test/MOI_wrapper.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function test_ipopt_runtests()
5555
MOI.VariableBasisStatus,
5656
MOI.ConstraintBasisStatus,
5757
MOI.ObjectiveBound,
58+
MOI.DualObjectiveValue,
5859
],
5960
),
6061
exclude = [

0 commit comments

Comments
 (0)