Skip to content

Commit e449308

Browse files
authored
Merge pull request #2942 from JuliaReach/compathelper/new_version/2022-02-26-00-34-40-571-02292608867
CompatHelper: bump compat for JuMP to 0.23, (keep existing compat)
2 parents 783ec73 + 1dc58b2 commit e449308

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2222
ExprTools = "0.1"
2323
GLPK = "0.11 - 0.15, 1"
2424
IntervalArithmetic = "0.15 - 0.20"
25-
JuMP = "0.21 - 0.22"
25+
JuMP = "0.21 - 0.23"
2626
RecipesBase = "0.6 - 0.8, 1"
2727
Reexport = "0.2, 1"
2828
Requires = "0.5, 1"

src/Approximations/overapproximate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ julia> x₁, x₂ = set_variables(Float64, ["x₁", "x₂"], order=8)
949949
1.0 x₂ + 𝒪(‖x‖⁹)
950950
951951
julia> x₀ = IntervalBox(0..0, 2) # expansion point
952-
[0, 0] × [0, 0]
952+
[0, 0]²
953953
954954
julia> Dx₁ = IA.Interval(0.0, 3.0) # domain for x₁
955955
[0, 3]

test/Approximations/overapproximate.jl

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -480,12 +480,13 @@ for N in [Float64]
480480
cap = overapproximate(Z L, OctDirections)
481481
@test (L Z) cap
482482

483+
# NOTE: ICP currently leads to unsatisfiable package requirements
483484
# overapproximate a nonlinear constraint with an HPolyhedron
484-
dom = IntervalBox(IA.Interval(-2, 2), IA.Interval(-2, 2))
485-
C = @constraint x^2 + y^2 <= 1
486-
p = pave(C, dom, 0.01)
487-
dirs = OctDirections(2)
488-
H = overapproximate(p, dirs)
489-
B2 = Ball2(N[0, 0], N(1))
490-
@test B2 H
485+
# dom = IntervalBox(IA.Interval(-2, 2), IA.Interval(-2, 2))
486+
# C = @constraint x^2 + y^2 <= 1
487+
# p = pave(C, dom, 0.01)
488+
# dirs = OctDirections(2)
489+
# H = overapproximate(p, dirs)
490+
# B2 = Ball2(N[0, 0], N(1))
491+
# @test B2 ⊆ H
491492
end

test/Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Expokit = "a1e7a1ef-7a5d-5822-a38c-be74e1bb89f4"
66
ExponentialUtilities = "d4d017d3-3776-5f7e-afef-a10c40355c18"
77
GR = "28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71"
88
IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253"
9-
IntervalConstraintProgramming = "138f1668-1576-5ad7-91b9-7425abbf3153"
9+
# IntervalConstraintProgramming = "138f1668-1576-5ad7-91b9-7425abbf3153"
1010
IntervalMatrices = "5c1f47dc-42dd-5697-8aaa-4d102d140ba9"
1111
Javis = "78b212ba-a7f9-42d4-b726-60726080707e"
1212
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
@@ -25,14 +25,14 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2525
WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192"
2626

2727
[compat]
28-
CDDLib = "0.6 - 0.8"
28+
CDDLib = "0.6 - 0.9"
2929
Distributions = "0.19 - 0.25"
3030
Documenter = "0.23 - 0.27"
3131
Expokit = "0.2"
3232
ExponentialUtilities = "1"
3333
GR = "0"
3434
IntervalArithmetic = "0.15 - 0.20"
35-
IntervalConstraintProgramming = "0.9 - 0.12"
35+
# IntervalConstraintProgramming = "0.9 - 0.12"
3636
IntervalMatrices = "0.8"
3737
Javis = "0.5 - 0.7"
3838
Makie = "0.9 - 0.16"

test/runtests.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
using LazySets, LazySets.Approximations, Test, LinearAlgebra, SparseArrays, StaticArrays
2-
3-
using LazySets: _leq, _geq, isapproxzero, _isapprox, _ztol
1+
using LazySets, LazySets.Approximations, Test, LinearAlgebra, SparseArrays,
2+
StaticArrays
43

54
# fix random number generator seed
65
using Random
@@ -10,18 +9,19 @@ Random.seed!(1234)
109
# Optional dependencies
1110
# ========================
1211
import Distributions, ExponentialUtilities, Expokit, IntervalArithmetic,
13-
IntervalMatrices, Optim, Pkg, TaylorModels, IntervalConstraintProgramming
12+
IntervalMatrices, Optim, Pkg, TaylorModels
1413
const IA = IntervalArithmetic
1514
using IntervalArithmetic: IntervalBox
1615
using IntervalMatrices: ±, IntervalMatrix
1716
using TaylorModels: set_variables, TaylorModelN
18-
using IntervalConstraintProgramming
17+
# ICP currently leads to unsatisfiable package requirements
18+
# using IntervalConstraintProgramming
1919
using Symbolics
2020

2121
# ==============================
2222
# Non-exported helper functions
2323
# ==============================
24-
using LazySets: ispermutation
24+
using LazySets: _leq, _geq, isapproxzero, _isapprox, _ztol, ispermutation
2525
using LazySets.Arrays: isinvertible, inner, allequal,
2626
is_cyclic_permutation, SingleEntryVector
2727

0 commit comments

Comments
 (0)