@@ -484,7 +484,7 @@ function test_nonlinear_hs071_NLPBlockDual(
484
484
cu = MOI. add_constraint .(model, v, MOI. LessThan .(u))
485
485
MOI. set .(model, MOI. VariablePrimalStart (), v, start)
486
486
lb, ub = [25.0 , 40.0 ], [Inf , 40.0 ]
487
- evaluator = MOI . Test . HS071 (true )
487
+ evaluator = HS071 (true )
488
488
block_data = MOI. NLPBlockData (MOI. NLPBoundsPair .(lb, ub), evaluator, true )
489
489
MOI. set (model, MOI. NLPBlock (), block_data)
490
490
@@ -931,7 +931,7 @@ This is mainly for the internal purpose of checking their correctness as
931
931
written. External solvers can exclude this test without consequence.
932
932
"""
933
933
function test_nonlinear_HS071_internal (:: MOI.ModelLike , :: Config )
934
- d = MOI . Test . HS071 (true , true )
934
+ d = HS071 (true , true )
935
935
@test MOI. objective_expr (d) == :(
936
936
x[$ (MOI. VariableIndex (1 ))] *
937
937
x[$ (MOI. VariableIndex (4 ))] *
@@ -994,7 +994,7 @@ This is mainly for the internal purpose of checking their correctness as
994
994
written. External solvers can exclude this test without consequence.
995
995
"""
996
996
function test_nonlinear_Feasibility_internal (:: MOI.ModelLike , :: Config )
997
- d = MOI . Test . FeasibilitySenseEvaluator (true )
997
+ d = FeasibilitySenseEvaluator (true )
998
998
@test MOI. objective_expr (d) == :()
999
999
@test MOI. constraint_expr (d, 1 ) == :(x[$ (MOI. VariableIndex (1 ))]^ 2 == 1.0 )
1000
1000
@test_throws AssertionError MOI. constraint_expr (d, 2 )
@@ -1118,7 +1118,7 @@ end
1118
1118
1119
1119
function test_nonlinear_expression_hs071 (
1120
1120
model:: MOI.ModelLike ,
1121
- config:: MOI.Test. Config{T} ,
1121
+ config:: Config{T} ,
1122
1122
) where {T}
1123
1123
@requires T == Float64
1124
1124
@requires _supports (config, MOI. optimize!)
@@ -1173,7 +1173,7 @@ end
1173
1173
1174
1174
function test_nonlinear_expression_hs071_epigraph (
1175
1175
model:: MOI.ModelLike ,
1176
- config:: MOI.Test. Config{T} ,
1176
+ config:: Config{T} ,
1177
1177
) where {T}
1178
1178
@requires T == Float64
1179
1179
@requires _supports (config, MOI. optimize!)
@@ -1229,7 +1229,7 @@ end
1229
1229
1230
1230
function test_nonlinear_expression_hs109 (
1231
1231
model:: MOI.ModelLike ,
1232
- config:: MOI.Test. Config{T} ,
1232
+ config:: Config{T} ,
1233
1233
) where {T}
1234
1234
@requires T == Float64
1235
1235
@requires _supports (config, MOI. optimize!)
@@ -1296,7 +1296,7 @@ end
1296
1296
1297
1297
function test_nonlinear_expression_hs110 (
1298
1298
model:: MOI.ModelLike ,
1299
- config:: MOI.Test. Config{T} ,
1299
+ config:: Config{T} ,
1300
1300
) where {T}
1301
1301
@requires T == Float64
1302
1302
@requires _supports (config, MOI. optimize!)
@@ -1358,7 +1358,7 @@ end
1358
1358
1359
1359
function test_nonlinear_expression_quartic (
1360
1360
model:: MOI.ModelLike ,
1361
- config:: MOI.Test. Config{T} ,
1361
+ config:: Config{T} ,
1362
1362
) where {T}
1363
1363
@requires T == Float64
1364
1364
@requires _supports (config, MOI. optimize!)
@@ -1406,7 +1406,7 @@ end
1406
1406
1407
1407
function test_nonlinear_expression_overrides_objective (
1408
1408
model:: MOI.ModelLike ,
1409
- config:: MOI.Test. Config{T} ,
1409
+ config:: Config{T} ,
1410
1410
) where {T}
1411
1411
@requires T == Float64
1412
1412
@requires _supports (config, MOI. optimize!)
@@ -1457,7 +1457,7 @@ end
1457
1457
1458
1458
function test_nonlinear_expression_univariate_function (
1459
1459
model:: MOI.ModelLike ,
1460
- config:: MOI.Test. Config{T} ,
1460
+ config:: Config{T} ,
1461
1461
) where {T}
1462
1462
@requires T == Float64
1463
1463
@requires _supports (config, MOI. optimize!)
@@ -1493,7 +1493,7 @@ end
1493
1493
1494
1494
function test_nonlinear_expression_multivariate_function (
1495
1495
model:: MOI.ModelLike ,
1496
- config:: MOI.Test. Config{T} ,
1496
+ config:: Config{T} ,
1497
1497
) where {T}
1498
1498
@requires T == Float64
1499
1499
@requires _supports (config, MOI. optimize!)
@@ -1544,10 +1544,7 @@ end
1544
1544
Tests dual solutions with `ScalarNonlinearFunction`. We use a linear program
1545
1545
so that the duals are easy to compute.
1546
1546
"""
1547
- function test_nonlinear_duals (
1548
- model:: MOI.ModelLike ,
1549
- config:: MOI.Test.Config{T} ,
1550
- ) where {T}
1547
+ function test_nonlinear_duals (model:: MOI.ModelLike , config:: Config{T} ) where {T}
1551
1548
@requires T == Float64
1552
1549
@requires _supports (config, MOI. optimize!)
1553
1550
@requires _supports (config, MOI. ConstraintDual)
@@ -1676,7 +1673,7 @@ end
1676
1673
1677
1674
function test_nonlinear_vector_complements (
1678
1675
model:: MOI.ModelLike ,
1679
- config:: MOI.Test. Config{T} ,
1676
+ config:: Config{T} ,
1680
1677
) where {T}
1681
1678
@requires T == Float64
1682
1679
@requires _supports (config, MOI. optimize!)
0 commit comments