Skip to content

Commit

Permalink
Loosen tolerances in SCS conic test (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Mar 7, 2022
1 parent 64b4f0c commit 7e529e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/conic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function test_simple_conic_model()
SCS.Optimizer,
MOI.Silent() => true,
),
"atol" => 1e-4,
"atol" => 0.1,
),
)
@variable(model, 0 <= x[1:2] <= 10, Int)
Expand All @@ -38,7 +38,7 @@ function test_simple_conic_model()
@test dual_status(model) == FEASIBLE_POINT
@test isapprox(value.(x), [6, 8]; atol = 1e-4)
@test sqrt(value(x[1])^2 + value(x[2])^2) <= 10 + 1e-4
@test isapprox(objective_value(model), 58; atol = 1e-5)
@test isapprox(objective_value(model), 58; atol = 1e-2)
return
end

Expand Down

0 comments on commit 7e529e9

Please sign in to comment.