Skip to content

Commit 6c247b1

Browse files
authored
[Test] fix numerics of test_cpsat_CountGreaterThan (#1983)
SCIP was failing this test because the c variable was unbounded. A trivial fix is to give it some finite bounds.
1 parent 6abf091 commit 6c247b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Test/test_cpsat.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ function test_cpsat_CountGreaterThan(
207207
c, _ = MOI.add_constrained_variable(model, MOI.Integer())
208208
y, _ = MOI.add_constrained_variable(model, MOI.Integer())
209209
x = [MOI.add_constrained_variable(model, MOI.Integer())[1] for _ in 1:3]
210+
MOI.add_constraint(model, c, MOI.Interval(T(0), T(6)))
210211
MOI.add_constraint.(model, x, MOI.Interval(T(0), T(4)))
211212
MOI.add_constraint(model, y, MOI.Interval(T(0), T(4)))
212213
MOI.add_constraint(

0 commit comments

Comments
 (0)