Skip to content

Commit bc0455e

Browse files
committed
remove ExactSum
1 parent 680e4c7 commit bc0455e

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

src/Discretization/CorrectionHullMatrixZonotope.jl

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ using ..ReachabilityAnalysis: IDGenerator, synchronize!, fresh!
1212
using LinearAlgebra: I, norm
1313

1414
export CorrectionHullMatrixZonotope
15-
export ExactSum
1615
export overapproximate_continuous_input
1716
export overapproximate_discrete_input
1817
export overapproximate_discrete_input_split
@@ -25,22 +24,6 @@ const LPDS = LinearParametricDiscreteSystem
2524
const CLCPCS = ConstrainedLinearControlParametricContinuousSystem
2625
const CLCPDS = ConstrainedLinearControlParametricDiscreteSystem
2726

28-
#TODO: move to LazySets
29-
struct ExactSum{N,S1<:LazySet{N},S2<:LazySet{N}} <: LazySet{N}
30-
X::S1
31-
Y::S2
32-
33-
# default constructor with dimension check
34-
function ExactSum(X::LazySet{N}, Y::LazySet{N}) where {N}
35-
@assert dim(X) == dim(Y) "sets in a exact sum must have the same dimension"
36-
return new{N,typeof(X),typeof(Y)}(X, Y)
37-
end
38-
end
39-
40-
function concretize(ES::ExactSum)
41-
exact_sum(ES.X, ES.Y)
42-
end
43-
4427
@inline function _split_emz_overapproximation(MZP,
4528
P::S,
4629
k::Int,
@@ -197,7 +180,7 @@ function discretize(ivp::IVP{<:CLCPCS,<:SparsePolynomialZonotope}, δ,
197180
A_norm = norm(A, Inf)
198181
Pτ0 = overapproximate_continuous_input(A, B, T, U, idg, taylor_order, A_norm; Δt=δ)
199182

200-
Ω0 = ExactSum(H0, Pτ0)
183+
Ω0 = H0 Pτ0
201184
Sdis = CLCPDS(A, B, ivp.s.X, ivp.s.U)
202185
return InitialValueProblem(Sdis, Ω0)
203186
end

0 commit comments

Comments
 (0)