-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alternative test environment for IA v0.22
- Loading branch information
Showing
6 changed files
with
87 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[deps] | ||
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
DynamicPolynomials = "7c1d4256-1411-5781-91ec-d7bc3513ac07" | ||
IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253" | ||
RangeEnclosures = "1b4d18b6-9e5d-11e9-236c-f792b01831f8" | ||
SDPA = "b9a10b5b-afa4-512f-a053-bb3d8080febc" | ||
SumOfSquares = "4b9e565b-77fc-50a5-a571-1244f986bda1" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[compat] | ||
Aqua = "0.8.9" | ||
Documenter = "0.27, 1" | ||
DynamicPolynomials = "0.3 - 0.6" | ||
IntervalArithmetic = "0.22" | ||
SDPA = "0.2 - 0.6" | ||
SumOfSquares = "0.3.6 - 0.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
global oldIA = false | ||
|
||
include("../runtests.jl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,51 @@ | ||
using Test, RangeEnclosures | ||
using AffineArithmetic, IntervalOptimisation, TaylorModels, SDPA, SumOfSquares | ||
using SDPA, SumOfSquares | ||
using DynamicPolynomials: @polyvar | ||
|
||
available_solvers = (NaturalEnclosure(), | ||
MeanValueEnclosure(), | ||
AffineArithmeticEnclosure(), | ||
MooreSkelboeEnclosure(), | ||
TaylorModelsEnclosure(), | ||
BranchAndBoundEnclosure()) | ||
global oldIA | ||
if !isdefined(Main, :oldIA) | ||
@show oldIA = true | ||
end | ||
|
||
@static if oldIA | ||
using AffineArithmetic, IntervalOptimisation, TaylorModels | ||
available_solvers = (NaturalEnclosure(), | ||
MeanValueEnclosure(), | ||
AffineArithmeticEnclosure(), | ||
MooreSkelboeEnclosure(), | ||
TaylorModelsEnclosure(), | ||
BranchAndBoundEnclosure()) | ||
|
||
# execute the argument code | ||
macro ts(arg) | ||
quote | ||
$(esc(arg)) | ||
end | ||
end | ||
|
||
isequal_interval = (==) | ||
else | ||
available_solvers = (NaturalEnclosure(), | ||
MeanValueEnclosure(), | ||
BranchAndBoundEnclosure()) | ||
|
||
# skip the argument code | ||
macro ts(arg) end | ||
|
||
using RangeEnclosures: Interval # this is necessary for some reason | ||
using RangeEnclosures.IntervalArithmetic: isequal_interval, inf, sup | ||
end | ||
|
||
include("univariate.jl") | ||
include("multivariate.jl") | ||
@ts include("multivariate.jl") | ||
include("paper.jl") | ||
|
||
using Documenter | ||
include("../docs/init.jl") | ||
@testset "doctests" begin | ||
doctest(RangeEnclosures) | ||
@ts begin | ||
using Documenter | ||
include("../docs/init.jl") | ||
@testset "doctests" begin | ||
doctest(RangeEnclosures) | ||
end | ||
end | ||
|
||
include("Aqua.jl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters