• Keine Ergebnisse gefunden

2.4 Computation of Reachable Sets

2.4.2 Local Linearization

x=f(x(t),y(t),u(t)), 0=g(x(t),y(t),u(t)),

Set of explicit ODEs Set of algebraic equations

(2.38)

with f : Rnx+ny+nu 7→ Rnx and g : Rnx+ny+nu 7→ Rny. Here, the vector x ∈ Rnx includes the differential states variables, the vectory∈Rny specifies the algebraic variables, and the vectoru∈Rnu considers the controllable inputs and/or input uncertainties. Note that any fully-implicit DAE can always be transformed into the semi-explicit form, furthermore, the index-1 property holds if and only if the Jacobian matrix of the algebraic equations is invertible (non-singular), that is

det

∂g(x(t),y(t),u(t))

∂y

6= 0, t >0. (2.39)

2.4.2 Local Linearization

As stated earlier, our approach is based on abstracting the set of semi-explicit DAEs (2.38) to LDIs for consecutive time intervals; that is to perform a local linearization within the interval τk := [tk, tk+1], wherek∈Nis the time step. We only use constant-size time intervalstk =k·tr, withtr∈R+ being the time increment. An extension, however, covering variable-size time steps can found in [54].

For a concise notation, we introduce the vectorz:= (xTyTuT)T ∈Rnz, and the linearization point zk := (xTk ykTuTk)T. Notice that the subscriptk denotes the time step; that is the linearization point is updated at each time interval.

Remark 2.5. Since the linearization of (2.38) causes additional errors, these errors are determined in an over-approximative manner and considered as additional uncertain inputs. By recomputing the linearization for each τk, the over-approximation of the exact reachable set remains small and accurate results are guaranteed.

The local linearization of the DAE system (2.38), at each time interval τk is performed by an infinite Taylor series expressed as follows:

Infinite number of terms offi(z)

, (2.40)

Infinite number of terms ofgi(z)

, (2.41)

with ˜z(t) :=z(t)−zk and the subscriptidenoting thei-th coordinate. Here the infinite number of terms of the Taylor expansion can be over-approximated using the following proposition, see [22]:

Proposition 2.1. Lagrangian remainder: For the time intervalτk, suppose the vectorz(t) varies within an arbitrary setRzk), then the Taylor series of the DAE system (2.38) at the linearization point zk is expressed via a 1-st order Taylor expansion in addition to the remainder terms bounded within the so-called Lagrangian remainder

withLxandLy corresponding to the remainders of differential and algebraic variables, respectively, and the variableµtakes any value from the setζ(τk), which is expressed according to

ζ(τk) :=

(

αz+ (1−α)zk : 0≤αi≤1,z∈Rzk) )

.

2.4.2.1 Abstraction to Linear Differential Inclusions

Based on Prop. 2.1, we can rewrite the Taylor expansions (2.40) and (2.41) in state-space form

∀t∈τk : x(t) =˙ f(x(t),y(t),u(t)), (2.42)

Here the matrices Ak,Bk,Ck denote the system matrices of the linearized differential equations, and likewise,Dk,Ek,Fk specify the matrices of the linearized algebraic constraints with proper dimension.

Due to the index-1 property of the DAE system, it is guaranteed that the matrixFk is non-singular, thus

˜

y∈ −Fk−1·(g(zk) +Dkx˜+Eku˜⊕Lyk)), (2.44) then inserting (2.44) into (2.42) yields

˙

where L(τk) is the set of linearization errors. One can further simplify (2.45) by merging the set of uncertain inputs and the set of linearization errors together, that is

U˜(τk) :=w(zk)⊕B˜k(U⊕(−uk))⊕L(τk). (2.46) This allows the abstraction of the differential equations of the DAE system (2.38) by the following LDI

∀t∈τk: x(t)˙ ∈A˜kx(t)˜ ⊕ U(τ˜ k). (2.47) Remark 2.6. Note that the DAE system (2.38) is abstracted at each time interval τk. Additionally, the inclusion (2.47) encloses all possible trajectories of the nonlinear DAE system, as we consider the linearization errors via the set of Lagrangian remainder included within the set of uncertain inputs ˜U.

2.4.2.2 Reachable Set Computation of Linear Inclusions

With the abstraction of the DAE system by (2.47), we can now employ known techniques to computing reachable sets for linear systems. Analogously to the solution of linear-time invariant (LTI) systems de-scribed by state equations, the solution of (2.47) for the next time instanttk+1, based on the superposition principle, is well-known to be [56]

Rx(tk+1) =eA˜ktrRx(tk) andRp([0, tr]) denote the homogenous and particular (inhomogeneous) solutions, respectively, andeAt˜r is the matrix exponential. Note that the subscriptxcorresponds to differential state variables.

In this thesis we describeeAt˜r via a finite Taylor series, up to an order σ, in addition to the remainder that considers all higher-order terms [101]

eA˜ktr = I+

where the set M([0, tr]) corresponds to the set over-approximating the remainder terms of the Taylor expansion of the matrix exponential.

Note that (2.48) is just the solution of the LDI at the time tk+1. However, we are mainly interested in the solution within the overall time intervalτk; thus we must enclose the reachable sets at the time instants tk and tk+1 in the least conservative way. The over-approximation of the reachable set within τk is obtained as suggested in [38]

τk∈[tk+1, tk] : Rxhk)⊆conv with the operatorconv(·) returning the convex hull enclosure of two sets as in (2.29). Here the additional term C([0, tr]) is an uncertainty factor handling correction of the enclosure set accounting for bloating of the reachable set. The computation ofC([0, tr]) as in (2.52) is based on [6, Prop. 3.1] which employs interval arithmetics.

With the computation of the homogenous solution, it remains to express the effect of the uncertain input;

that is to consider the inhomogeneous solution of the LDI (2.48). First we consider the simple case, in

which we assume that the system matrix ˜Ak is invertible and the trajectories of the uncertain inputs ˜U remains constant over the intervalτk; thus the set enclosing the particular solution may be expressed by

Rp([0, tr]) = ˜U(τk) Z tr

0

eA˜k(tr−t)dt= ˜U(τk)·A˜−1k

eA˜k(tr−t)

tr

0

= ˜U(τk)·A˜−1k (eA˜ktr−I).

However, the aforementioned assumptions do not hold in many practical situations. In the event that either the matrix ˜Ak is singular or the set ˜U(τk) varies over time, one has to over-approximate the particular solution according to the following proposition, see [6, 85]:

Proposition 2.2. Over-approximation of the LDI particular solution: Given the LDI described as in (2.47), then the over-approximation of its particular solution is given by

Rp([0, tr])⊂

σ

X

i=0

|A˜ik|tri+1 (i+ 1)! ·U˜

!

M·tr·U˜

. (2.53)

withMandσas the variables appearing in (2.49) to over-approximate the matrix exponential.

Remark 2.7. Note that in Prop. 2.2, it is assumed that the set ˜U(τk) contains the origin, which is not always the case and certain correction measures have to be applied to consider this case. Simply put, one needs to split the effect of ˜U(τk) into a constant uc corresponding to its center and another set ˜U

specifying the deviation from the centeruc. 2.4.2.3 Algorithmic Realization

Combining all previous results, the reachable set of the LDI for consecutive time intervals can be com-puted, as illustrated in Fig. 2.12, according to the following steps:

(a) Compute the homogeneous reachable sets of the LDI at different time instants based on previously computed sets.

(b) Obtain and bloat the convex hull enclosure of the homogenous reachable sets. The enlargement of the convex hull is necessary for two reasons: first to over-approximate the reachable set for each time interval, and second to account for the effect of the inhomogeneous solution of the LDI.

(a) Reachable sets at different time steps (b) Convex enclousre and enlargement

Figure 2.12: Stepwise computation of reachable sets of linear differential inclusions expressed as in (2.47).

The aforementioned steps can be summarized as in Alg. 1. The algorithm computes the reachable set of a family of LTI systems enclosed by the LDI described as in (2.47), for the next point in time using previously computed reachable sets. First, through lines 1-3, the algorithm computes the remainder of the matrix exponentialM([0, tr]) based on the number of Taylor termsσwhich is a user-defined variable.

Using the remainder terms, one can over-approximate the matrix exponentialeAt˜ r to obtain the homoge-nous solution of the LDI, in addition to the correction termC([0, tr]) accounting for over-approximation of the reachable set within the interval τk, as illustrated in lines 4 and 5. Finally, to fully describe the reachable set for the next time instant and current time interval, the algorithm over-approximates the particular solution of the LDI according to Prop. 2.2, as specified in lines 6-8.

Remark 2.8. In order to obtain the reachable for the complete time-horizont∈[0, tf], withtf as the terminal time specified by the user, one has to continuously call Alg. 1 to obtain the reachable sets at different time instants until t > tf. Afterwards the reachable set is assembled via the union of the computed sets, that isR([0, tf]) :=Stf /tr

k=1 R(τk).

Algorithm 1 ReachNextStep

Require: Uncertain inputs ˜U(τk), the time incrementtr, number of Taylor termsσof the matrix expo-nential, time step k, and the system matrix ˜Ak

Ensure: Rx(tk+1),Rxk)

i! ⊕M([0, tr]) .Over-approximation of matrix exponential

3: C([0, tr])(2.52)= Pσ