Skip to content

Commit

Permalink
bring back SDPA
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Mar 9, 2024
1 parent 5166aee commit b479536
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ result of this algorithm is not rigorous.
### Examples
```example
```jldoctest
julia> using SumOfSquares, SDPA, DynamicPolynomials
julia> backend = SDPA.Optimizer;
Expand Down
3 changes: 1 addition & 2 deletions test/multivariate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ end
# Note: DynamicPolynomials automatically expands p, and evaluation using
# interval arithmetic gives a worse left bound than the factored expression.

if Sys.iswindows() || VERSION >= v"1.10"
# SDPA is broken on Windows or v1.10
if Sys.iswindows() # SDPA is broken on Windows
@test_broken begin
x = enclose(p, dom, SumOfSquaresEnclosure(; backend=SDPA.Optimizer))
isapprox(inf(x), 0.0; atol=1e-3)
Expand Down
5 changes: 2 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using Test, RangeEnclosures
using AffineArithmetic, IntervalOptimisation, TaylorModels, SumOfSquares

@static if Sys.iswindows() || VERSION >= v"1.10"
# SDPA is broken on Windows or v1.10
@static if Sys.iswindows() # SDPA is broken on Windows
@test_broken using SDPA
else
using SDPA
Expand All @@ -21,7 +20,7 @@ include("univariate.jl")
include("multivariate.jl")
include("paper.jl")

@static if !Sys.iswindows() # broken due to SDPA
@static if !Sys.iswindows() # SDPA is broken on Windows
using Documenter
include("../docs/init.jl")
@testset "doctests" begin
Expand Down
3 changes: 1 addition & 2 deletions test/univariate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ end
rleft, rright = relative_precision(x, xref)
@test rleft 1e-5 && rright 1e-5

if Sys.iswindows() || VERSION >= v"1.10"
# SDPA is broken on Windows or v1.10
if Sys.iswindows() # SDPA is broken on Windows
@test_broken begin
x = enclose(p, dom, SumOfSquaresEnclosure(; backend=SDPA.Optimizer))
xref = interval(4.8333, 10.541)
Expand Down

0 comments on commit b479536

Please sign in to comment.