Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 11, 2024
1 parent 012b43e commit 4ee7576
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Bridges/Constraint/flip_sign.jl
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,11 @@ function test_runtests()
VectorNonlinearFunction([-(2.1 * x - 1.0)]) in Nonnegatives(1)
""",
)
MOI.Bridges.runtests(
MOI.Bridges.Constraint.GreaterToLessBridge,
model -> MOI.add_constraint(model, zero(MOI.ScalarAffineFunction{Float64}), MOI.GreaterThan(1.0)),
model -> MOI.add_constraint(model, zero(MOI.ScalarAffineFunction{Float64}), MOI.LessThan(-1.0)),
)
return
end

Expand Down

0 comments on commit 4ee7576

Please sign in to comment.