@@ -38,8 +38,6 @@ function test_linear_integration(
3838 MOI. SingleVariable,
3939 MOI. GreaterThan{T},
4040 )
41- MOI. empty! (model)
42- @test MOI. is_empty (model)
4341 v = MOI. add_variables (model, 2 )
4442 @test MOI. get (model, MOI. NumberOfVariables ()) == 2
4543 cf = MOI. ScalarAffineFunction {T} (
@@ -573,8 +571,6 @@ function test_linear_integration_2(
573571 MOI. SingleVariable,
574572 MOI. GreaterThan{T},
575573 )
576- MOI. empty! (model)
577- @test MOI. is_empty (model)
578574 x = MOI. add_variable (model)
579575 y = MOI. add_variable (model)
580576 @test MOI. get (model, MOI. NumberOfVariables ()) == 2
@@ -715,8 +711,6 @@ function test_linear_inactive_bounds(
715711 MOI. SingleVariable,
716712 MOI. LessThan{T},
717713 )
718- MOI. empty! (model)
719- @test MOI. is_empty (model)
720714 x = MOI. add_variable (model)
721715 @test MOI. get (model, MOI. NumberOfVariables ()) == 1
722716 vc = MOI. add_constraint (
@@ -869,8 +863,6 @@ function test_linear_LessThan_and_GreaterThan(
869863 MOI. SingleVariable,
870864 MOI. LessThan{T},
871865 )
872- MOI. empty! (model)
873- @test MOI. is_empty (model)
874866 x = MOI. add_variable (model)
875867 y = MOI. add_variable (model)
876868 # Min x - y
@@ -994,8 +986,6 @@ function test_linear_integration_modification(
994986 MOI. ScalarAffineFunction{T},
995987 MOI. LessThan{T},
996988 )
997- MOI. empty! (model)
998- @test MOI. is_empty (model)
999989 x = MOI. add_variable (model)
1000990 y = MOI. add_variable (model)
1001991 @test MOI. get (model, MOI. NumberOfVariables ()) == 2
@@ -1159,8 +1149,6 @@ function test_linear_modify_GreaterThan_and_LessThan_constraints(
11591149 MOI. ScalarAffineFunction{T},
11601150 MOI. LessThan{T},
11611151 )
1162- MOI. empty! (model)
1163- @test MOI. is_empty (model)
11641152 x = MOI. add_variable (model)
11651153 y = MOI. add_variable (model)
11661154 # Min x - y
@@ -1302,8 +1290,6 @@ function test_linear_VectorAffineFunction(
13021290 MOI. VectorAffineFunction{T},
13031291 MOI. Nonpositives,
13041292 )
1305- MOI. empty! (model)
1306- @test MOI. is_empty (model)
13071293 x = MOI. add_variable (model)
13081294 y = MOI. add_variable (model)
13091295 # Min x - y
@@ -1459,8 +1445,6 @@ function test_linear_INFEASIBLE(
14591445 MOI. SingleVariable,
14601446 MOI. GreaterThan{T},
14611447 )
1462- MOI. empty! (model)
1463- @test MOI. is_empty (model)
14641448 x = MOI. add_variable (model)
14651449 y = MOI. add_variable (model)
14661450 c = MOI. add_constraint (
@@ -1567,8 +1551,6 @@ function test_linear_DUAL_INFEASIBLE(
15671551 MOI. SingleVariable,
15681552 MOI. GreaterThan{T},
15691553 )
1570- MOI. empty! (model)
1571- @test MOI. is_empty (model)
15721554 x = MOI. add_variable (model)
15731555 y = MOI. add_variable (model)
15741556 MOI. add_constraint (
@@ -1662,8 +1644,6 @@ function test_linear_DUAL_INFEASIBLE_2(
16621644 MOI. SingleVariable,
16631645 MOI. GreaterThan{T},
16641646 )
1665- MOI. empty! (model)
1666- @test MOI. is_empty (model)
16671647 x = MOI. add_variable (model)
16681648 y = MOI. add_variable (model)
16691649 MOI. add_constraint (
@@ -1772,8 +1752,6 @@ function test_linear_add_constraints(
17721752 MOI. SingleVariable,
17731753 MOI. GreaterThan{T},
17741754 )
1775- MOI. empty! (model)
1776- @test MOI. is_empty (model)
17771755 x = MOI. add_variable (model)
17781756 y = MOI. add_variable (model)
17791757 vc12 = MOI. add_constraints (
@@ -1895,8 +1873,6 @@ function test_linear_integration_Interval(
18951873 MOI. SingleVariable,
18961874 MOI. GreaterThan{T},
18971875 )
1898- MOI. empty! (model)
1899- @test MOI. is_empty (model)
19001876 x = MOI. add_variable (model)
19011877 y = MOI. add_variable (model)
19021878 vc = MOI. add_constraints (
@@ -2141,8 +2117,6 @@ function test_linear_Interval_inactive(
21412117 MOI. SingleVariable,
21422118 MOI. GreaterThan{T},
21432119 )
2144- MOI. empty! (model)
2145- @test MOI. is_empty (model)
21462120 x = MOI. add_variable (model)
21472121 y = MOI. add_variable (model)
21482122 vc = MOI. add_constraints (
@@ -2284,8 +2258,6 @@ function test_linear_transform(
22842258 MOI. ScalarAffineFunction{T},
22852259 MOI. LessThan{T},
22862260 )
2287- MOI. empty! (model)
2288- @test MOI. is_empty (model)
22892261 v = MOI. add_variables (model, 2 )
22902262 c1 = MOI. add_constraint (
22912263 model,
@@ -2387,8 +2359,6 @@ function test_linear_INFEASIBLE_2(
23872359 MOI. SingleVariable,
23882360 MOI. GreaterThan{T},
23892361 )
2390- MOI. empty! (model)
2391- @test MOI. is_empty (model)
23922362 x = MOI. add_variable (model)
23932363 y = MOI. add_variable (model)
23942364 c1 = MOI. add_constraint (
@@ -2501,8 +2471,6 @@ function test_linear_FEASIBILITY_SENSE(
25012471 MOI. ScalarAffineFunction{T},
25022472 MOI. GreaterThan{T},
25032473 )
2504- MOI. empty! (model)
2505- @test MOI. is_empty (model)
25062474 x = MOI. add_variable (model)
25072475 y = MOI. add_variable (model)
25082476 c1 = MOI. add_constraint (
@@ -2607,8 +2575,6 @@ function test_linear_integration_delete_variables(
26072575 MOI. SingleVariable,
26082576 MOI. LessThan{T},
26092577 )
2610- MOI. empty! (model)
2611- @test MOI. is_empty (model)
26122578 x, y, z = MOI. add_variables (model, 3 )
26132579 c = MOI. add_constraint (
26142580 model,
@@ -2792,8 +2758,6 @@ function test_linear_VectorAffineFunction_empty_row(
27922758 MOI. VectorAffineFunction{T},
27932759 MOI. Zeros,
27942760 )
2795- MOI. empty! (model)
2796- @test MOI. is_empty (model)
27972761 x = MOI. add_variables (model, 1 )
27982762 # Create a VectorAffineFunction with two rows, but only one term, belonging
27992763 # to the second row. The first row, which is empty, is essentially a
@@ -2875,8 +2839,6 @@ function test_linear_VariablePrimalStart_partial(
28752839) where {T}
28762840 atol = config. atol
28772841 rtol = config. rtol
2878- MOI. empty! (model)
2879- @test MOI. is_empty (model)
28802842 x = MOI. add_variable (model)
28812843 y = MOI. add_variable (model)
28822844 MOI. set (model, MOI. VariablePrimalStart (), x, one (T))
0 commit comments