File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -362,6 +362,8 @@ solves correctly.
362362"""
363363function delete_variables_in_a_batch (model:: MOI.ModelLike ,
364364 config:: TestConfig )
365+ atol = config. atol
366+ rtol = config. rtol
365367 MOI. empty! (model)
366368 @test MOI. is_empty (model)
367369 MOIU. loadfromstring! (model,"""
@@ -377,15 +379,15 @@ function delete_variables_in_a_batch(model::MOI.ModelLike,
377379 @test MOI. is_valid (model, z)
378380 if config. solve
379381 MOI. optimize! (model)
380- @test MOI. get (model, MOI. ObjectiveValue ()) == 6.0
382+ @test MOI. get (model, MOI. ObjectiveValue ()) ≈ 6.0 atol = atol rtol = rtol
381383 end
382384 MOI. delete (model, [x, z])
383385 @test ! MOI. is_valid (model, x)
384386 @test MOI. is_valid (model, y)
385387 @test ! MOI. is_valid (model, z)
386388 if config. solve
387389 MOI. optimize! (model)
388- @test MOI. get (model, MOI. ObjectiveValue ()) == 2.0
390+ @test MOI. get (model, MOI. ObjectiveValue ()) ≈ 2.0 atol = atol rtol = rtol
389391 end
390392end
391393modificationtests[" delete_variables_in_a_batch" ] = delete_variables_in_a_batch
You can’t perform that action at this time.
0 commit comments