@@ -4,7 +4,7 @@ function test_countdistinct_vectorofvariables(
4
4
) where {T <: Real }
5
5
@MOIT . requires MOI. supports_constraint (model, MOI. VariableIndex, MOI. Integer) # x1, x2, x3, x4
6
6
@MOIT . requires MOI. supports_constraint (model, MOI. VariableIndex, MOI. EqualTo{T}) # c1, c2, c3
7
- @MOIT . requires MOI. supports_constraint (model, MOI. VectorOfVariables, CP . CountDistinct) # c4
7
+ @MOIT . requires MOI. supports_constraint (model, MOI. VectorOfVariables, MOI . CountDistinct) # c4
8
8
9
9
x1, _ = MOI. add_constrained_variable (model, MOI. Integer ())
10
10
x2, _ = MOI. add_constrained_variable (model, MOI. Integer ())
@@ -15,7 +15,7 @@ function test_countdistinct_vectorofvariables(
15
15
c2 = MOI. add_constraint (model, x2, MOI. EqualTo (1 ))
16
16
c3 = MOI. add_constraint (model, x3, MOI. EqualTo (2 ))
17
17
18
- c4 = MOI. add_constraint (model, MOI. VectorOfVariables ([x4, x1, x2, x3]), CP . CountDistinct (3 ))
18
+ c4 = MOI. add_constraint (model, MOI. VectorOfVariables ([x4, x1, x2, x3]), MOI . CountDistinct (4 ))
19
19
20
20
@test MOI. is_valid (model, x1)
21
21
@test MOI. is_valid (model, x2)
@@ -57,7 +57,7 @@ function test_countdistinct_vectoraffinefunction(
57
57
) where {T <: Real }
58
58
@MOIT . requires MOI. supports_constraint (model, MOI. VariableIndex, MOI. Integer) # x1, x2, x3, x4
59
59
@MOIT . requires MOI. supports_constraint (model, MOI. ScalarAffineFunction{T}, MOI. EqualTo{T}) # c1, c2, c3
60
- @MOIT . requires MOI. supports_constraint (model, MOI. VectorAffineFunction{T}, CP . CountDistinct) # c4
60
+ @MOIT . requires MOI. supports_constraint (model, MOI. VectorAffineFunction{T}, MOI . CountDistinct) # c4
61
61
62
62
x1, _ = MOI. add_constrained_variable (model, MOI. Integer ())
63
63
x2, _ = MOI. add_constrained_variable (model, MOI. Integer ())
@@ -68,7 +68,7 @@ function test_countdistinct_vectoraffinefunction(
68
68
c2 = MOI. add_constraint (model, one (T) * x2, MOI. EqualTo (1 ))
69
69
c3 = MOI. add_constraint (model, one (T) * x3, MOI. EqualTo (2 ))
70
70
71
- c4 = MOI. add_constraint (model, MOIU. vectorize (one (T) .* [x4, x1, x2, x3]), CP . CountDistinct (3 ))
71
+ c4 = MOI. add_constraint (model, MOIU. vectorize (one (T) .* [x4, x1, x2, x3]), MOI . CountDistinct (4 ))
72
72
73
73
@test MOI. is_valid (model, x1)
74
74
@test MOI. is_valid (model, x2)
0 commit comments