Skip to content

Commit 2d88c28

Browse files
committed
rename variables in 'Forward' discretization
1 parent 4d1ef9c commit 2d88c28

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Discretization/ForwardModule.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,16 @@ function discretize(ivp::IVP{<:CLCCS,<:LazySet}, δ, alg::Forward)
141141
U = next_set(inputset(ivp), 1)
142142
Eψ0 = sih(P2A_abs * sih(A * U, alg.sih), alg.sih)
143143

144-
Ud = δ * U Eψ0
145-
In = IdentityMultiple(one(eltype(A)), size(A, 1))
144+
# discretize inputs
145+
V = δ * U Eψ0
146146

147-
Ω0 = ConvexHull(X0, Φ * X0 Ud E⁺)
147+
Ω0 = ConvexHull(X0, Φ * X0 V E⁺)
148148
Ω0 = _apply_setops(Ω0, alg.setops)
149+
150+
# create result
151+
B = IdentityMultiple(one(eltype(A)), size(A, 1))
149152
X = stateset(ivp)
150-
Sdis = ConstrainedLinearControlDiscreteSystem(Φ, In, X, Ud)
153+
Sdis = ConstrainedLinearControlDiscreteSystem(Φ, B, X, V)
151154
return InitialValueProblem(Sdis, Ω0)
152155
end
153156

0 commit comments

Comments
 (0)