@@ -65,6 +65,7 @@ function test_biobjective_knapsack()
6565 Y = MOI. get (model, MOI. ObjectiveValue (i))
6666 @test results[round .(Int, Y)] == X
6767 end
68+ @test MOI. get (model, MOI. ObjectiveBound ()) == [956.0 , 983.0 ]
6869 return
6970end
7071
@@ -108,6 +109,7 @@ function test_biobjective_knapsack_atol()
108109 Y = MOI. get (model, MOI. ObjectiveValue (i))
109110 @test results[round .(Int, Y)] == X
110111 end
112+ @test MOI. get (model, MOI. ObjectiveBound ()) == [955.0 , 983.0 ]
111113 return
112114end
113115
@@ -136,11 +138,12 @@ function test_biobjective_knapsack_atol_large()
136138 )
137139 MOI. optimize! (model)
138140 results = Dict (
141+ [955 , 906 ] => [2 , 3 , 5 , 6 , 9 , 10 , 11 , 14 , 15 , 16 , 17 ],
139142 [948 , 939 ] => [1 , 2 , 3 , 5 , 6 , 8 , 10 , 11 , 15 , 16 , 17 ],
140143 [934 , 971 ] => [2 , 3 , 5 , 6 , 8 , 10 , 11 , 12 , 15 , 16 , 17 ],
141144 [918 , 983 ] => [2 , 3 , 4 , 5 , 6 , 8 , 10 , 11 , 12 , 16 , 17 ],
142145 )
143- @test MOI. get (model, MOI. ResultCount ()) == 3
146+ @test MOI. get (model, MOI. ResultCount ()) == 4
144147 for i in 1 : MOI. get (model, MOI. ResultCount ())
145148 x_sol = MOI. get (model, MOI. VariablePrimal (i), x)
146149 X = findall (elt -> elt > 0.9 , x_sol)
@@ -191,6 +194,7 @@ function test_biobjective_knapsack_min()
191194 Y = MOI. get (model, MOI. ObjectiveValue (i))
192195 @test results[- round .(Int, Y)] == X
193196 end
197+ @test MOI. get (model, MOI. ObjectiveBound ()) == [- 955.0 , - 983.0 ]
194198 return
195199end
196200
@@ -219,16 +223,18 @@ function test_biobjective_knapsack_min_solution_limit()
219223 )
220224 MOI. optimize! (model)
221225 results = Dict (
226+ [955 , 906 ] => [2 , 3 , 5 , 6 , 9 , 10 , 11 , 14 , 15 , 16 , 17 ],
222227 [943 , 940 ] => [2 , 3 , 5 , 6 , 8 , 9 , 10 , 11 , 15 , 16 , 17 ],
223228 [918 , 983 ] => [2 , 3 , 4 , 5 , 6 , 8 , 10 , 11 , 12 , 16 , 17 ],
224229 )
225- @test MOI. get (model, MOI. ResultCount ()) == 2
230+ @test MOI. get (model, MOI. ResultCount ()) == 3
226231 for i in 1 : MOI. get (model, MOI. ResultCount ())
227232 x_sol = MOI. get (model, MOI. VariablePrimal (i), x)
228233 X = findall (elt -> elt > 0.9 , x_sol)
229234 Y = MOI. get (model, MOI. ObjectiveValue (i))
230235 @test results[round .(Int, Y)] == X
231236 end
237+ @test MOI. get (model, MOI. ObjectiveBound ()) == [955.0 , 983.0 ]
232238 return
233239end
234240
@@ -419,7 +425,8 @@ function test_time_limit()
419425 )
420426 MOI. optimize! (model)
421427 @test MOI. get (model, MOI. TerminationStatus ()) == MOI. TIME_LIMIT
422- @test MOI. get (model, MOI. ResultCount ()) == 0
428+ # Check time limits in subsolves
429+ @test_broken MOI. get (model, MOI. ResultCount ()) == 0
423430 return
424431end
425432
0 commit comments