Skip to content

Follow-up to #623 to use an actually unbounded model #624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/MOI/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1608,12 +1608,12 @@ function test_multiple_solutions_when_dual_infeasible()
x, _ = MOI.add_constrained_variable(model, MOI.Interval(0.0, 1.0))
y = MOI.add_variable(model)
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
f = 0.25 * y * y - 1.0 * x * y - 1.0 * y + 1.0
f = 1.0 * x * y - 1.0 * y * y
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
MOI.optimize!(model)
@test MOI.get(model, MOI.TerminationStatus()) == MOI.DUAL_INFEASIBLE
for i in MOI.get(model, MOI.ResultCount())
@test MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT
for i in 1:MOI.get(model, MOI.ResultCount())
@test MOI.get(model, MOI.PrimalStatus(i)) == MOI.FEASIBLE_POINT
end
return
end
Expand Down
Loading