@@ -38,8 +38,6 @@ function test_linear_integration(
38
38
MOI. SingleVariable,
39
39
MOI. GreaterThan{T},
40
40
)
41
- MOI. empty! (model)
42
- @test MOI. is_empty (model)
43
41
v = MOI. add_variables (model, 2 )
44
42
@test MOI. get (model, MOI. NumberOfVariables ()) == 2
45
43
cf = MOI. ScalarAffineFunction {T} (
@@ -573,8 +571,6 @@ function test_linear_integration_2(
573
571
MOI. SingleVariable,
574
572
MOI. GreaterThan{T},
575
573
)
576
- MOI. empty! (model)
577
- @test MOI. is_empty (model)
578
574
x = MOI. add_variable (model)
579
575
y = MOI. add_variable (model)
580
576
@test MOI. get (model, MOI. NumberOfVariables ()) == 2
@@ -715,8 +711,6 @@ function test_linear_inactive_bounds(
715
711
MOI. SingleVariable,
716
712
MOI. LessThan{T},
717
713
)
718
- MOI. empty! (model)
719
- @test MOI. is_empty (model)
720
714
x = MOI. add_variable (model)
721
715
@test MOI. get (model, MOI. NumberOfVariables ()) == 1
722
716
vc = MOI. add_constraint (
@@ -869,8 +863,6 @@ function test_linear_LessThan_and_GreaterThan(
869
863
MOI. SingleVariable,
870
864
MOI. LessThan{T},
871
865
)
872
- MOI. empty! (model)
873
- @test MOI. is_empty (model)
874
866
x = MOI. add_variable (model)
875
867
y = MOI. add_variable (model)
876
868
# Min x - y
@@ -994,8 +986,6 @@ function test_linear_integration_modification(
994
986
MOI. ScalarAffineFunction{T},
995
987
MOI. LessThan{T},
996
988
)
997
- MOI. empty! (model)
998
- @test MOI. is_empty (model)
999
989
x = MOI. add_variable (model)
1000
990
y = MOI. add_variable (model)
1001
991
@test MOI. get (model, MOI. NumberOfVariables ()) == 2
@@ -1159,8 +1149,6 @@ function test_linear_modify_GreaterThan_and_LessThan_constraints(
1159
1149
MOI. ScalarAffineFunction{T},
1160
1150
MOI. LessThan{T},
1161
1151
)
1162
- MOI. empty! (model)
1163
- @test MOI. is_empty (model)
1164
1152
x = MOI. add_variable (model)
1165
1153
y = MOI. add_variable (model)
1166
1154
# Min x - y
@@ -1302,8 +1290,6 @@ function test_linear_VectorAffineFunction(
1302
1290
MOI. VectorAffineFunction{T},
1303
1291
MOI. Nonpositives,
1304
1292
)
1305
- MOI. empty! (model)
1306
- @test MOI. is_empty (model)
1307
1293
x = MOI. add_variable (model)
1308
1294
y = MOI. add_variable (model)
1309
1295
# Min x - y
@@ -1459,8 +1445,6 @@ function test_linear_INFEASIBLE(
1459
1445
MOI. SingleVariable,
1460
1446
MOI. GreaterThan{T},
1461
1447
)
1462
- MOI. empty! (model)
1463
- @test MOI. is_empty (model)
1464
1448
x = MOI. add_variable (model)
1465
1449
y = MOI. add_variable (model)
1466
1450
c = MOI. add_constraint (
@@ -1567,8 +1551,6 @@ function test_linear_DUAL_INFEASIBLE(
1567
1551
MOI. SingleVariable,
1568
1552
MOI. GreaterThan{T},
1569
1553
)
1570
- MOI. empty! (model)
1571
- @test MOI. is_empty (model)
1572
1554
x = MOI. add_variable (model)
1573
1555
y = MOI. add_variable (model)
1574
1556
MOI. add_constraint (
@@ -1662,8 +1644,6 @@ function test_linear_DUAL_INFEASIBLE_2(
1662
1644
MOI. SingleVariable,
1663
1645
MOI. GreaterThan{T},
1664
1646
)
1665
- MOI. empty! (model)
1666
- @test MOI. is_empty (model)
1667
1647
x = MOI. add_variable (model)
1668
1648
y = MOI. add_variable (model)
1669
1649
MOI. add_constraint (
@@ -1772,8 +1752,6 @@ function test_linear_add_constraints(
1772
1752
MOI. SingleVariable,
1773
1753
MOI. GreaterThan{T},
1774
1754
)
1775
- MOI. empty! (model)
1776
- @test MOI. is_empty (model)
1777
1755
x = MOI. add_variable (model)
1778
1756
y = MOI. add_variable (model)
1779
1757
vc12 = MOI. add_constraints (
@@ -1895,8 +1873,6 @@ function test_linear_integration_Interval(
1895
1873
MOI. SingleVariable,
1896
1874
MOI. GreaterThan{T},
1897
1875
)
1898
- MOI. empty! (model)
1899
- @test MOI. is_empty (model)
1900
1876
x = MOI. add_variable (model)
1901
1877
y = MOI. add_variable (model)
1902
1878
vc = MOI. add_constraints (
@@ -2141,8 +2117,6 @@ function test_linear_Interval_inactive(
2141
2117
MOI. SingleVariable,
2142
2118
MOI. GreaterThan{T},
2143
2119
)
2144
- MOI. empty! (model)
2145
- @test MOI. is_empty (model)
2146
2120
x = MOI. add_variable (model)
2147
2121
y = MOI. add_variable (model)
2148
2122
vc = MOI. add_constraints (
@@ -2284,8 +2258,6 @@ function test_linear_transform(
2284
2258
MOI. ScalarAffineFunction{T},
2285
2259
MOI. LessThan{T},
2286
2260
)
2287
- MOI. empty! (model)
2288
- @test MOI. is_empty (model)
2289
2261
v = MOI. add_variables (model, 2 )
2290
2262
c1 = MOI. add_constraint (
2291
2263
model,
@@ -2387,8 +2359,6 @@ function test_linear_INFEASIBLE_2(
2387
2359
MOI. SingleVariable,
2388
2360
MOI. GreaterThan{T},
2389
2361
)
2390
- MOI. empty! (model)
2391
- @test MOI. is_empty (model)
2392
2362
x = MOI. add_variable (model)
2393
2363
y = MOI. add_variable (model)
2394
2364
c1 = MOI. add_constraint (
@@ -2501,8 +2471,6 @@ function test_linear_FEASIBILITY_SENSE(
2501
2471
MOI. ScalarAffineFunction{T},
2502
2472
MOI. GreaterThan{T},
2503
2473
)
2504
- MOI. empty! (model)
2505
- @test MOI. is_empty (model)
2506
2474
x = MOI. add_variable (model)
2507
2475
y = MOI. add_variable (model)
2508
2476
c1 = MOI. add_constraint (
@@ -2607,8 +2575,6 @@ function test_linear_integration_delete_variables(
2607
2575
MOI. SingleVariable,
2608
2576
MOI. LessThan{T},
2609
2577
)
2610
- MOI. empty! (model)
2611
- @test MOI. is_empty (model)
2612
2578
x, y, z = MOI. add_variables (model, 3 )
2613
2579
c = MOI. add_constraint (
2614
2580
model,
@@ -2792,8 +2758,6 @@ function test_linear_VectorAffineFunction_empty_row(
2792
2758
MOI. VectorAffineFunction{T},
2793
2759
MOI. Zeros,
2794
2760
)
2795
- MOI. empty! (model)
2796
- @test MOI. is_empty (model)
2797
2761
x = MOI. add_variables (model, 1 )
2798
2762
# Create a VectorAffineFunction with two rows, but only one term, belonging
2799
2763
# to the second row. The first row, which is empty, is essentially a
@@ -2875,8 +2839,6 @@ function test_linear_VariablePrimalStart_partial(
2875
2839
) where {T}
2876
2840
atol = config. atol
2877
2841
rtol = config. rtol
2878
- MOI. empty! (model)
2879
- @test MOI. is_empty (model)
2880
2842
x = MOI. add_variable (model)
2881
2843
y = MOI. add_variable (model)
2882
2844
MOI. set (model, MOI. VariablePrimalStart (), x, one (T))
0 commit comments