Skip to content

Commit c797854

Browse files
committed
fix 'setops' option for 'Forward'
1 parent 2d88c28 commit c797854

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Discretization/ForwardModule.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ function discretize(ivp::IVP{<:CLCS,<:LazySet}, δ, alg::Forward)
8787
Φcache = sum(A) == abs(sum(A)) ? Φ : nothing
8888
P2A_abs = Φ₂(A_abs, δ, alg.exp, alg.inv, Φcache)
8989
E₊ = sih(P2A_abs * sih((A * A) * X0, alg.sih), alg.sih)
90+
9091
Ω0 = ConvexHull(X0, Φ * X0 E₊)
9192
Ω0 = _apply_setops(Ω0, alg)
93+
9294
X = stateset(ivp)
9395
Sdis = ConstrainedLinearDiscreteSystem(Φ, X)
9496
return InitialValueProblem(Sdis, Ω0)
@@ -115,6 +117,7 @@ function discretize(ivp::IVP{<:CLCS,Interval{N}}, δ, ::Forward) where {N}
115117
E⁺ =- one(N) - aδ) * convert(Interval, symmetric_interval_hull(X0)).dat
116118

117119
Ω0 = Interval(hull(X0.dat, Φ * X0.dat + E⁺))
120+
118121
X = stateset(ivp)
119122
# the system constructor creates a matrix
120123
Sdis = ConstrainedLinearDiscreteSystem(Φ, X)
@@ -143,6 +146,7 @@ function discretize(ivp::IVP{<:CLCCS,<:LazySet}, δ, alg::Forward)
143146

144147
# discretize inputs
145148
V = δ * U Eψ0
149+
V = _apply_setops(V, alg.setops)
146150

147151
Ω0 = ConvexHull(X0, Φ * X0 V E⁺)
148152
Ω0 = _apply_setops(Ω0, alg.setops)

0 commit comments

Comments
 (0)