@@ -21,7 +21,7 @@ function _lin1test(model::MOI.ModelLike, config::TestConfig, vecofvars::Bool)
21
21
@test MOI. supports_constraint (model, MOI. VectorAffineFunction{Float64}, MOI. Zeros)
22
22
23
23
MOI. empty! (model)
24
- @test MOI. isempty (model)
24
+ @test MOI. is_empty (model)
25
25
26
26
v = MOI. add_variables (model, 3 )
27
27
@test MOI. get (model, MOI. NumberOfVariables ()) == 3
@@ -105,7 +105,7 @@ function _lin2test(model::MOI.ModelLike, config::TestConfig, vecofvars::Bool)
105
105
@test MOI. supports_constraint (model, MOI. VectorAffineFunction{Float64}, MOI. Zeros)
106
106
107
107
MOI. empty! (model)
108
- @test MOI. isempty (model)
108
+ @test MOI. is_empty (model)
109
109
110
110
x,y,z,s = MOI. add_variables (model, 4 )
111
111
@test MOI. get (model, MOI. NumberOfVariables ()) == 4
@@ -190,7 +190,7 @@ function lin3test(model::MOI.ModelLike, config::TestConfig)
190
190
@test MOI. supports_constraint (model, MOI. VectorAffineFunction{Float64}, MOI. Nonnegatives)
191
191
192
192
MOI. empty! (model)
193
- @test MOI. isempty (model)
193
+ @test MOI. is_empty (model)
194
194
195
195
x = MOI. add_variable (model)
196
196
@@ -238,7 +238,7 @@ function lin4test(model::MOI.ModelLike, config::TestConfig)
238
238
@test MOI. supports_constraint (model, MOI. VectorOfVariables, MOI. Nonpositives)
239
239
240
240
MOI. empty! (model)
241
- @test MOI. isempty (model)
241
+ @test MOI. is_empty (model)
242
242
243
243
x = MOI. add_variable (model)
244
244
@@ -295,7 +295,7 @@ function _soc1test(model::MOI.ModelLike, config::TestConfig, vecofvars::Bool)
295
295
@test MOI. supports_constraint (model, MOI. VectorOfVariables,MOI. SecondOrderCone)
296
296
297
297
MOI. empty! (model)
298
- @test MOI. isempty (model)
298
+ @test MOI. is_empty (model)
299
299
300
300
x,y,z = MOI. add_variables (model, 3 )
301
301
@@ -370,7 +370,7 @@ function _soc2test(model::MOI.ModelLike, config::TestConfig, nonneg::Bool)
370
370
@test MOI. supports_constraint (model, MOI. VectorAffineFunction{Float64},MOI. SecondOrderCone)
371
371
372
372
MOI. empty! (model)
373
- @test MOI. isempty (model)
373
+ @test MOI. is_empty (model)
374
374
375
375
x,y,t = MOI. add_variables (model, 3 )
376
376
@@ -441,7 +441,7 @@ function soc3test(model::MOI.ModelLike, config::TestConfig)
441
441
@test MOI. supports_constraint (model, MOI. VectorAffineFunction{Float64},MOI. SecondOrderCone)
442
442
443
443
MOI. empty! (model)
444
- @test MOI. isempty (model)
444
+ @test MOI. is_empty (model)
445
445
446
446
x,y = MOI. add_variables (model, 2 )
447
447
@@ -490,7 +490,7 @@ function soc4test(model::MOI.ModelLike, config::TestConfig)
490
490
@test MOI. supports_constraint (model, MOI. VectorOfVariables, MOI. SecondOrderCone)
491
491
492
492
MOI. empty! (model)
493
- @test MOI. isempty (model)
493
+ @test MOI. is_empty (model)
494
494
495
495
x = MOI. add_variables (model, 5 )
496
496
@@ -561,7 +561,7 @@ function _rotatedsoc1test(model::MOI.ModelLike, config::TestConfig, abvars::Bool
561
561
end
562
562
563
563
MOI. empty! (model)
564
- @test MOI. isempty (model)
564
+ @test MOI. is_empty (model)
565
565
566
566
x = MOI. add_variables (model, 2 )
567
567
if abvars
@@ -650,7 +650,7 @@ function rotatedsoc2test(model::MOI.ModelLike, config::TestConfig)
650
650
@test MOI. supports_constraint (model, MOI. VectorOfVariables,MOI. RotatedSecondOrderCone)
651
651
652
652
MOI. empty! (model)
653
- @test MOI. isempty (model)
653
+ @test MOI. is_empty (model)
654
654
655
655
x = MOI. add_variables (model, 3 )
656
656
@@ -717,7 +717,7 @@ function rotatedsoc3test(model::MOI.ModelLike, config::TestConfig; n=2, ub=3.0)
717
717
@test MOI. supports_constraint (model, MOI. VectorAffineFunction{Float64}, MOI. RotatedSecondOrderCone)
718
718
719
719
MOI. empty! (model)
720
- @test MOI. isempty (model)
720
+ @test MOI. is_empty (model)
721
721
722
722
x = MOI. add_variables (model, n)
723
723
u = MOI. add_variable (model)
@@ -817,7 +817,7 @@ function _geomean1test(model::MOI.ModelLike, config::TestConfig, vecofvars, n=3)
817
817
@test MOI. supports_constraint (model, MOI. ScalarAffineFunction{Float64}, MOI. LessThan{Float64})
818
818
819
819
MOI. empty! (model)
820
- @test MOI. isempty (model)
820
+ @test MOI. is_empty (model)
821
821
822
822
t = MOI. add_variable (model)
823
823
x = MOI. add_variables (model, n)
@@ -879,7 +879,7 @@ function _exp1test(model::MOI.ModelLike, config::TestConfig, vecofvars::Bool)
879
879
@test MOI. supports_constraint (model, MOI. ScalarAffineFunction{Float64}, MOI. EqualTo{Float64})
880
880
881
881
MOI. empty! (model)
882
- @test MOI. isempty (model)
882
+ @test MOI. is_empty (model)
883
883
884
884
v = MOI. add_variables (model, 3 )
885
885
@test MOI. get (model, MOI. NumberOfVariables ()) == 3
@@ -944,7 +944,7 @@ function exp2test(model::MOI.ModelLike, config::TestConfig)
944
944
@test MOI. supports_constraint (model, MOI. VectorAffineFunction{Float64}, MOI. Nonnegatives)
945
945
946
946
MOI. empty! (model)
947
- @test MOI. isempty (model)
947
+ @test MOI. is_empty (model)
948
948
949
949
v = MOI. add_variables (model, 9 )
950
950
@test MOI. get (model, MOI. NumberOfVariables ()) == 9
@@ -1009,7 +1009,7 @@ function exp3test(model::MOI.ModelLike, config::TestConfig)
1009
1009
@test MOI. supports_constraint (model, MOI. VectorAffineFunction{Float64}, MOI. ExponentialCone)
1010
1010
1011
1011
MOI. empty! (model)
1012
- @test MOI. isempty (model)
1012
+ @test MOI. is_empty (model)
1013
1013
1014
1014
x = MOI. add_variable (model)
1015
1015
y = MOI. add_variable (model)
@@ -1079,7 +1079,7 @@ function _psd0test(model::MOI.ModelLike, vecofvars::Bool, psdcone, config::TestC
1079
1079
@test MOI. supports_constraint (model, MOI. ScalarAffineFunction{Float64}, MOI. EqualTo{Float64})
1080
1080
1081
1081
MOI. empty! (model)
1082
- @test MOI. isempty (model)
1082
+ @test MOI. is_empty (model)
1083
1083
1084
1084
X = MOI. add_variables (model, square ? 4 : 3 )
1085
1085
@test MOI. get (model, MOI. NumberOfVariables ()) == (square ? 4 : 3 )
@@ -1213,7 +1213,7 @@ function _psd1test(model::MOI.ModelLike, vecofvars::Bool, psdcone, config::TestC
1213
1213
@test MOI. supports_constraint (model, MOI. VectorOfVariables, MOI. SecondOrderCone)
1214
1214
1215
1215
MOI. empty! (model)
1216
- @test MOI. isempty (model)
1216
+ @test MOI. is_empty (model)
1217
1217
1218
1218
X = MOI. add_variables (model, square ? 9 : 6 )
1219
1219
@test MOI. get (model, MOI. NumberOfVariables ()) == (square ? 9 : 6 )
@@ -1293,7 +1293,7 @@ function psdt2test(model::MOI.ModelLike, config::TestConfig)
1293
1293
@test MOI. supports_constraint (model, MOI. ScalarAffineFunction{Float64}, MOI. EqualTo{Float64})
1294
1294
1295
1295
MOI. empty! (model)
1296
- @test MOI. isempty (model)
1296
+ @test MOI. is_empty (model)
1297
1297
1298
1298
x = MOI. add_variables (model, 7 )
1299
1299
@test MOI. get (model, MOI. NumberOfVariables ()) == 7
@@ -1395,7 +1395,7 @@ function _det1test(model::MOI.ModelLike, config::TestConfig, vecofvars::Bool, de
1395
1395
@test MOI. supports_constraint (model, MOI. VectorAffineFunction{Float64}, MOI. Nonnegatives)
1396
1396
1397
1397
MOI. empty! (model)
1398
- @test MOI. isempty (model)
1398
+ @test MOI. is_empty (model)
1399
1399
1400
1400
t = MOI. add_variable (model)
1401
1401
@test MOI. get (model, MOI. NumberOfVariables ()) == 1
0 commit comments