Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jan 15, 2025
1 parent 8dc9c28 commit 6cb578a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/MOI/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,19 @@ function test_Env()
return
end

function test_SOS1_no_conflict()
model = Gurobi.Optimizer(GRB_ENV)
MOI.set(model, MOI.Silent(), true)
x = MOI.add_variables(model, 2)
set = MOI.SOS1([1.0, 2.0])
c1 = MOI.add_constraint(model, MOI.VectorOfVariables(x), set)
MOI.optimize!(model)
MOI.compute_conflict!(model)
@test MOI.get(model, MOI.ConstraintConflictStatus(), c1) ==
MOI.NOT_IN_CONFLICT
return
end

function test_SOS1_in_conflict()
model = Gurobi.Optimizer(GRB_ENV)
MOI.set(model, MOI.Silent(), true)
Expand Down

0 comments on commit 6cb578a

Please sign in to comment.