@@ -1817,7 +1817,6 @@ function test_nonlinear_with_scalar_quadratic_function_with_off_diag(
18171817 model:: MOI.ModelLike ,
18181818 config:: Config{T} ,
18191819) where {T}
1820- @requires T == Float64
18211820 @requires _supports (config, MOI. optimize!)
18221821 F = MOI. ScalarNonlinearFunction
18231822 @requires MOI. supports_constraint (model, F, MOI. EqualTo{T})
@@ -1861,6 +1860,7 @@ function test_nonlinear_constraint_log(
18611860 model:: MOI.ModelLike ,
18621861 config:: Config{T} ,
18631862) where {T}
1863+ @requires _supports (config, MOI. optimize!)
18641864 F, S = MOI. ScalarNonlinearFunction, MOI. GreaterThan{T}
18651865 @requires MOI. supports_constraint (model, F, S)
18661866 x = MOI. add_variable (model)
@@ -1905,6 +1905,7 @@ function test_nonlinear_constraint_uminus(
19051905 model:: MOI.ModelLike ,
19061906 config:: Config{T} ,
19071907) where {T}
1908+ @requires _supports (config, MOI. optimize!)
19081909 F, S = MOI. ScalarNonlinearFunction, MOI. GreaterThan{T}
19091910 @requires MOI. supports_constraint (model, F, S)
19101911 x = MOI. add_variable (model)
@@ -1935,6 +1936,9 @@ function test_nonlinear_constraint_scalar_affine_function(
19351936 model:: MOI.ModelLike ,
19361937 config:: Config{T} ,
19371938) where {T}
1939+ @requires _supports (config, MOI. optimize!)
1940+ F, S = MOI. ScalarNonlinearFunction, MOI. LessThan{T}
1941+ @requires MOI. supports_constraint (model, F, S)
19381942 x1, _ = MOI. add_constrained_variable (model, MOI. GreaterThan (zero (T)))
19391943 x2, _ = MOI. add_constrained_variable (model, MOI. GreaterThan (zero (T)))
19401944 x3, _ = MOI. add_constrained_variable (model, MOI. GreaterThan (zero (T)))
@@ -1970,6 +1974,9 @@ function test_nonlinear_quadratic_1(
19701974 model:: MOI.ModelLike ,
19711975 config:: Config{T} ,
19721976) where {T}
1977+ @requires _supports (config, MOI. optimize!)
1978+ F, S = MOI. ScalarNonlinearFunction, MOI. LessThan{T}
1979+ @requires MOI. supports_constraint (model, F, S)
19731980 # max x + y
19741981 # s.t sqrt(*(x, x) + *(y, y)) <= 1
19751982 # x, y >= 0
@@ -2012,6 +2019,9 @@ function test_nonlinear_quadratic_2(
20122019 model:: MOI.ModelLike ,
20132020 config:: Config{T} ,
20142021) where {T}
2022+ @requires _supports (config, MOI. optimize!)
2023+ F, S = MOI. ScalarNonlinearFunction, MOI. LessThan{T}
2024+ @requires MOI. supports_constraint (model, F, S)
20152025 # Present products as ScalarAffineTerms nested in ScalarNonlinearFunctions
20162026 # max x + y
20172027 # s.t sqrt(*(x, x) + *(y, y)) <= 1
@@ -2055,6 +2065,9 @@ function test_nonlinear_quadratic_3(
20552065 model:: MOI.ModelLike ,
20562066 config:: Config{T} ,
20572067) where {T}
2068+ @requires _supports (config, MOI. optimize!)
2069+ F, S = MOI. ScalarNonlinearFunction, MOI. LessThan{T}
2070+ @requires MOI. supports_constraint (model, F, S)
20582071 # Present products as ScalarQuadraticFunctions (complete with 2x factor ...)
20592072 # max x + y
20602073 # s.t sqrt(*(x, x) + *(y, y)) <= 1
@@ -2098,6 +2111,9 @@ function test_nonlinear_quadratic_4(
20982111 model:: MOI.ModelLike ,
20992112 config:: Config{T} ,
21002113) where {T}
2114+ @requires _supports (config, MOI. optimize!)
2115+ F, S = MOI. ScalarNonlinearFunction, MOI. LessThan{T}
2116+ @requires MOI. supports_constraint (model, F, S)
21012117 # max x + y
21022118 # s.t sqrt(^(x, 2) + ^(y, 2)) <= 1 # Use NL POW(2) operator
21032119 # x, y >= 0
0 commit comments