Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Dec 4, 2024
1 parent 9842ec4 commit 9d3c9c0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,18 @@ function test_add_constrained_variable_tuple()
return
end

function test_dual_objective_value_infeasible()
model = HiGHS.Optimizer()
x = MOI.add_variable(model)
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
f = 1.0 * x
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
MOI.optimize!(model)
@test MOI.get(model, MOI.DualStatus()) == MOI.INFEASIBLE_POINT
@test MOI.get(model, MOI.DualObjectiveValue()) == 0.0
return
end

end # module

TestMOIHighs.runtests()

0 comments on commit 9d3c9c0

Please sign in to comment.