Skip to content

Commit

Permalink
mark SDPA tests as broken on v1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Jan 5, 2024
1 parent 48c0898 commit 21c1f41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Base.@kwdef struct TaylorModelsEnclosure <: AbstractDirectRangeAlgorithm
normalize::Bool = true
end

# TODO turn example below into doctest when SDPA works again
"""
SumOfSquaresEnclosure{T} <: AbstractIterativeRangeAlgorithm
Expand All @@ -147,7 +148,7 @@ result of this algorithm is not rigorous.
### Examples
```jldoctest
```example
julia> using SumOfSquares, SDPA, DynamicPolynomials
julia> backend = SDPA.Optimizer;
Expand Down
4 changes: 2 additions & 2 deletions test/multivariate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ end
# Note: DynamicPolynomials automatically expands p, and evaluation using
# interval arithmetic gives a worse left bound than the factored expression.

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

@static if Sys.iswindows()
@static if Sys.iswindows() || VERSION >= v"1.10"
# SDPA is broken on Windows or v1.10
@test_broken using SDPA
else
using SDPA
Expand Down
4 changes: 2 additions & 2 deletions test/univariate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ end
rleft, rright = relative_precision(x, xref)
@test rleft 1e-5 && rright 1e-5

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

0 comments on commit 21c1f41

Please sign in to comment.