Assessing the Finite-Time Stability of Nonlinear Systems by means of Physics-Informed Neural Networks
Adriano Mele, Alfredo Pironti

TL;DR
This paper introduces a novel method using Physics-Informed Neural Networks to assess finite-time stability in nonlinear systems by approximating Lyapunov-like functions, enabling practical verification and control applications.
Contribution
It proposes a neural network-based approach to verify finite-time stability conditions for nonlinear systems, extending existing methods with a flexible, data-driven technique.
Findings
Successfully verified FTS in numerical examples
Provided a closed-form Lyapunov-like function
Enhanced verification flexibility for nonlinear systems
Abstract
In this paper, the problem of assessing the Finite-Time Stability (FTS) property for general nonlinear systems is considered. First, some necessary and sufficient conditions that guarantee the FTS of general nonlinear systems are provided; such conditions are expressed in terms of the existence of a suitable Lyapunov-like function. Connections of the main theoretical result of given in this article with the typical conditions based on Linear Matrix Inequalities (LMI) that are used for Linear Time-Varying (LTV) systems are discussed. An extension to the case of discrete time systems is also provided. Then, we propose a method to verify the obtained conditions for a very broad class of nonlinear systems. The proposed technique leverages the capability of neural networks to serve as universal function approximators to obtain the Lyapunov-like function. The network training data are…
| Ex. | ||||||||
|---|---|---|---|---|---|---|---|---|
| #1 | 1 | 1 | 1 | 0.1 | 5000 | 500 | 11 | 200 |
| #2 | 5 | 1 | 1 | 3 | 55000 | 200 | 11 | 700 |
| #3 | 5 | 1 | 0.1 | 1 | 60000 | 100 | 15 | 700 |
| Ex. | hidden | neurons | mini- | learn | decay |
|---|---|---|---|---|---|
| layers | batches | rate | rate | ||
| #1 | 1 | 128 | 100 | 0.01 | |
| #2 | 3 | 32 | 200 | 0.003 | |
| #3 | 3 | 32 | 500 | 0.003 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsControl Systems and Identification · Neural Networks and Applications · Adaptive Control of Nonlinear Systems
Assessing the Finite-Time Stability of Nonlinear Systems by means of Physics-Informed Neural Networks
A. Mele
A. Pironti
Dipartimento di Economia, Ingegneria, Società e Impresa,
Università degli Studi della Tuscia, Viterbo, Italy
Dipartimento di Ingegneria Elettrica e delle Tecnologie dell’Informazione,
Università degli Studi di Napoli Federico II, via Claudio 21, 80125, Napoli, Italy
Abstract
In this paper, the problem of assessing the Finite-Time Stability (FTS) property for general nonlinear systems is considered. First, some necessary and sufficient conditions that guarantee the FTS of general nonlinear systems are provided; such conditions are expressed in terms of the existence of a suitable Lyapunov-like function. Connections of the main theoretical result of given in this article with the typical conditions based on Linear Matrix Inequalities (LMI) that are used for Linear Time-Varying (LTV) systems are discussed. An extension to the case of discrete time systems is also provided. Then, we propose a method to verify the obtained conditions for a very broad class of nonlinear systems. The proposed technique leverages the capability of neural networks to serve as universal function approximators to obtain the Lyapunov-like function. The network training data are generated by enforcing the conditions defining such function in a (large) set of collocation points, as in the case of Physics-Informed Neural Networks. To illustrate the effectiveness of the proposed approach, some numerical examples are proposed and discussed. The technique proposed in this paper allows to obtain the required Lyapunov-like function in closed form. This has the twofold advantage of a) providing a practical way to verify the considered FTS property for a very general class of systems, with an unprecedented flexibility in the FTS context, and b) paving the way to control applications based on Lyapunov methods in the framework of Finite-Time Stability and Control.
keywords:
Finite-Time stability , neural networks , universal approximation , Lyapunov methods
††journal: ISA transactions
1 Introduction
The concept of Finite-Time Stability (FTS), sometimes also referred to as practical stability, was originally introduced in the Russian literature in the ’50s [1, 2, 3]; during the next decade, studies on this topic were carried out by the western scientific community as well [4, 5, 6]. Roughly speaking, a dynamical system is said to be FTS with respect to a given time-horizon , an initial time instant , an initial set and a (possibly time-varying over the time interval ) trajectory set if, whenever the initial point of the state trajectory is contained in , the trajectory is confined inside for all .111Note that the concept of FTS used in this paper is not to be confused with another notion of finite-time stability that exists in the literature, namely the fact that a stable equilibrium is reached in a finite time interval [7]. (see fig. 1).
FTS is a concept linked to, but independent from, Lyapunov stability, as it is intrinsically concerned with quantitative results, substantially shifting the focus from the steady-state to the transient behaviour of the considered system. However, in many cases Lyapunov-like functions can be employed to assess the FTS of a dynamical system222For brevity, we will refer to these functions as Lyapunov functions as well, even though the conditions that they are required to satisfy are slightly different from the case of standard Lyapunov stability.; necessary and sufficient conditions for the FTS of nonlinear systems based on Lyapunov functions can be found, for instance, in the pioneering work by Bernfeld and Lakshmikantham [8]. Along the same line of research, the main aim of this work is to exploit conditions similar to the ones in [8] in order to derive a practical way to assess the considered FTS property for a very broad class of nonlinear systems.
In some cases, Lyapunov-like conditions for FTS can be efficiently solved by recasting them in terms of algebraic (LMI) and Differential (DLMI) Linear Matrix Inequalities. This fact, together with the availability of efficient tools for solving (D)LMIs, sparked a renewed interest in the topic in recent years. This is the case, for example, of Linear Time-Varying (LTV) systems over ellipsoidal, polytopic and piecewise-quadratic domains, for which techniques based on time-varying quadratic or piecewise-quadratic Lyapunov functions have been proposed (see the book [9] and the references therein for an overview). Moreover, similar techniques can be exploited to find finite-time stabilizing controllers for the same classes of systems. Several results appeared in the technical literature that extended the FTS framework to uncertain [10, 11], hybrid [12, 13], stochastic [14, 15] and time-delay systems [16], sometimes considering the case of annular domains [17, 18, 19, 20], where both an upper and lower bound on the state variables are assigned. An approach based on the Extremum Seeking algorithm for the Finite-Time stabilization of LTV systems with unknown control direction has been recently proposed in [21]. Some attempts have also been made in order to extend similar techniques to nonlinear systems; for example, in [22] DLMI-based sufficient conditions are given for the special class of nonlinear quadratic systems. However, for nonlinear systems, solutions in terms of (D)LMI feasibility problems are usually not available, and different techniques must be considered. In this view, we aim at proposing a general approach to assess the considered FTS property for the case of nonlinear systems, which, to the best of our knowledge, is lacking in the technical literature. The main problem tackled in this article can be divided in the two following points:
find necessary and sufficient conditions for the FTS of general nonlinear, non-autonomous systems;
- 2.
find a practical way to assess such conditions (at least for a reasonably large class of nonlinear systems for which standard LMI-based results do not apply).
To this aim, we first restate, in a slightly simplified form, the necessary and sufficient conditions for the FTS of continuous-time nonlinear systems originally given in [8]. Then, we discuss how these conditions are a generalization of the ones given in [9] for linear systems over ellipsoidal domains. Furthermore, this theoretical result is also extended to the discrete-time case.
Since the proposed conditions are given in terms of the existence of a suitable Lyapunov-like function, we then turn our attention to the problem of finding an expression for such function. A possible method, discussed in this work, is to design a dedicated procedure to train a suitable Neural Network (NN) in order to serve as the desired Lyapunov function. The use of NNs to represent Lyapunov functions is not new in the control literature, thanks to the capability of Neural Networks (NN) to serve as universal function approximators [23]. Some applications include autonomous NL systems [24] and robotics [25]; in the latter paper, a learner-falsifier training procedure is proposed to speed up the training process. A similar training architecture is also used in [26], where NNs are used to estimate the region of attraction of a given controller in the case of discrete time polynomial systems. In both [26] and [27], multi-output NNs are used in combination with quadratic expressions to enforce the positive-definiteness of the Lyapunov functions. Even though NN-based function approximations are known to suffer from the so-called curse of dimensionality, in [28] it is discussed how systems that benefit from a small-gain property have compositional Lyapunov functions which can be estimated with a number of neurons that only grows polynomially with the state dimension. Interestingly, the training procedures used to obtain Lyapunov functions with NNs are usually aimed at enforcing the desired conditions on both the network’s output and its derivatives with respect to the input parameters. As deep NNs are used to satisfy conditions involving partial derivatives by exploiting the knowledge of the equations governing a physical process, these techniques are naturally related to the framework of Physics-Informed Neural Networks (PINN) [29].
In this work, we draw ideas from these recent techniques and combine them with the general conditions for the FTS of nonlinear, non-autonomous systems with the aim to provide a flexible procedure that is capable of testing the FTS property for a broad class of dynamical systems over domains of a generic shape. To this end, we propose an approach to train a NN so that it serves as a Lyapunov function. The procedure relies on the standard Adam algorithm [30] to optimize a cost function designed to enforce the required conditions in a large set of collocation points. It is implemented by using off-the-shelf algorithms and can be run on GPU-enabled computers. To the best of our knowledge, this is the first time that a practical algorithm aimed at testing the FTS property for such a broad class of systems is proposed and implemented.
The rest of the paper is organized as follows: in Section 2, an overview of the notation used throughout the article and some preliminary results are given. Section 3 presents the main results of the paper. In particular, in section 3.1 the main results, i.e. the necessary and sufficient conditions for the FTS of continuous-time, nonlinear, non-autonomous systems are presented; these conditions are extended to the discrete-time case in section 3.2. In section 3.3, the connection between the results of section 3.1 and existing results for continuous-time linear systems are discussed. In section 3.4, a numerical procedure, based on NNs, to obtain a Lyapunov function that satisfies the properties required by the main result in section 3.1 is described. In section 4 some numerical examples are provided to show the effectiveness of the proposed procedure. Finally, in section 5, the obtained results are discussed and some concluding remarks are given.
2 Notation and Preliminaries
Given a vector , indicates its standard euclidean norm. denotes the closure of a set , its measure and its boundary; is the image of the set through the function . indicates that the matrix is negative-definite, that it is positive definite, denotes the identity matrix (whose dimensions will be clear from the context).
Throughout the article, we will consider systems in the form
[TABLE]
where , and . The evolution function of (1) is denoted by , while indicates the state-transition matrix of a LTV system, for which
[TABLE]
Throughout the paper, we will consider Lyapunov functions that are continuous, scalar and satisfy a local Lipschitz condition with respect to . We denote the orbital derivative of such a function along the trajectories of (1) as (see [31, Chap. 1])
[TABLE]
Notice that, in the above definition, the upper right-hand Dini derivative appears. Usually, for a generic function of time , this Dini derivative is denoted by ; however, to clearly differentiate between derivatives with respect to the and variables, we choose to adopt the more common dot notation . When differentiable functions are considered (as in the numerical procedure described in sec. 3.4), the standard and upper Dini derivatives coincide.
Finally, we adopt the following notation for compactness
[TABLE]
where the set depends on the value of .
Assumption 1
The map in equation (1) is continuous in and for each compact set it satisfies the Lipschitz condition
[TABLE]
where is a non-negative continuous function defined in .
For each , assumption 1 guarantees the existence and uniqueness of the evolution function for all in a suitable neighborhood of (see for example Theorem 3.1 in [32]).
Given an initial set , a (possibly time-varying) trajectory set and two scalars and , system (1) is said to be Finite-Time Stable (FTS) with respect to if and only if
[TABLE]
where is a closed set, is open and both are connected and bounded . Note that, for the definition to be well-posed, it is required that at .
3 Main results
In this section, the main results of this work are presented. First, necessary and sufficient conditions for the FTS of nonlinear, non-autonomous systems in the form (1) under assumption 1 are provided in thm. 1. Then, these conditions are extended to the case of discrete-time systems in thm. 2. The connections with the usual LMI-based conditions used for LTV systems (reported for ease of reference as thm. 3) are discussed in sec. 3.3. Finally, a numerical procedure to find a closed-form expression for the required Lyapunov function, based on Neural Networks, is proposed in sec. 3.4.
3.1 Necessary and sufficient conditions for FTS
The following theorem provides necessary and sufficient conditions for the FTS of system (1) 333The proof closely follows the arguments in [8, Thm. 3.1]..
Theorem 1
System (1) is FTS wrt if and only if there exists a continuous function , locally Lipschitz in , such that the following conditions hold
[TABLE]
[TABLE]
Proof. We start by proving sufficiency. Assume that that satisfies conditions (5-6). Moreover, by contradiction, assume that, for some initial point , such that and . By the definition of infimum
[TABLE]
On the other hand, eq. (5) yields
[TABLE]
which contradicts (6). Sufficiency is proven.
To prove necessity, assume that the system (1) is FTS wrt . We look for a continuous, locally Lipschitz function that satisfies conditions (5-6). To this end consider the system
[TABLE]
where is bounded in , satisfies the global Lipschitz condition
[TABLE]
being a continuous non-negative scalar function, and finally
[TABLE]
where is a compact set such that for all . The existence of such a is guaranteed by Assumption 1. Moreover the main result in [33] allows to conclude that the evolution function of equation (9) is defined, unique, and continuous in . Consider
[TABLE]
Note that is the initial point obtained by following the trajectory of (7) backwards from to ; the function associates to the distance of the initial point of the trajectory from the initial set . The function is continuous and bounded on each compact subset of ; we will now show that is also Lipschitz in . First of all note that, by the Gronwall inequality, we have that
[TABLE]
Now consider
[TABLE]
By applying the triangular inequality we obtain
[TABLE]
and this yields
[TABLE]
Similarly we have
[TABLE]
and hence
[TABLE]
Now, considering equation (11), we obtain
[TABLE]
Equation (13) guarantees the existence of the orbital derivative of as defined in (2). It is then trivial to verify that such derivative along the trajectories of system (7) is identically zero, as the initial point does not change. Now, considering equation (9) and the fact that system (1) satisfies the FTS property, we have
[TABLE]
hence, (5) holds (with the equality sign). To prove that satisfies (6), observe that , since every point has zero distance from the set . Now consider again a generic point , , and assume that s.t. . Since system (1) was assumed to be FTS, the initial point cannot be in the set . Hence, . Since this condition holds for all possible choices of and for all , and considering that is continuous in and is closed and bounded, it follows that
[TABLE]
i.e. satisfies (6). This completes the proof.
Remark 1
When a finite-dimensional state space is considered, will in general be compact sets, and the and in eq. (6) can be replaced with and respectively.
Remark 2
*Notice that, differently from classic Lyapunov stability, in the FTS framework it is not explicitly required that is positive-definite. *
Remark 3
*In [8, Thm. 3.1], a less restrictive version of (5) appears, which requires that for , with . With this choice, the orbital derivative of is allowed to take positive values, but the price for this increased freedom is that condition (6) must be complicated by resorting to the comparison lemma [34, Lemma 3.4]. However, there is no indication on how to choose the function a priori, and even the necessity proof in [8, Thm. 3.1] eventually assumes . For these reasons, we set from the beginning; this choice also simplifies the training procedure of sec. 3.4.
Moreover, with respect to [8, Thm. 3.1], the formulation of thm. 1 automatically takes into account the possibility that the trajectory domain is time-varying. This, in turn, makes condition (b-ii) in [8, Thm. 3.1] unnecessary.*
In view of the numerical implementation of the conditions in thm. 1, it is useful to state the following corollary.
Corollary 1
System (1) is FTS wrt if and only if there exists a continuous function such that condition (5) holds and condition (6) is replaced by
[TABLE]
for some fixed value of .
Proof. Suppose that (6) holds with
[TABLE]
for some and . The function , with satisfies condition (5), since . Choosing , it is now easy to verify that satisfies condition (14) as well.
The proof of this corollary is trivial, and it stems from the observation that a Lyapunov function can be rescaled by an arbitrary constant. However, the usefulness of this result is in the fact that it allows to freely choose the parameter , which becomes a tuning parameter for the numerical algorithm described in sec. 3.4. Moreover, it can be used to draw connections between well-assessed results on the FTS of LTV systems and thm. 1; this is done in sec. 3.3.
3.2 Extension to discrete-time systems
Consider a system in the form
[TABLE]
System (15) is said to be FTS with respect to if and only if, by definition, for (notice that there is no loss of generality in assuming that the index starts from [math]). As for the continuous time case, we assume closed and open. Moreover, we define the set
[TABLE]
and
[TABLE]
The following theorem provides necessary and sufficient conditions for the FTS of (15).
Theorem 2
System (15) is FTS wrt if there exists a function continuous in , such that the following conditions hold
[TABLE]
[TABLE]
Moreover, if is continuous with respect to and it admits an inverse for , then conditions (16-17) are also necessary.
Proof. To prove sufficiency, assume that that satisfies conditions (16-17). Moreover, assume that, for some initial point , such that and . Since , it follows that . By definition, we have that
[TABLE]
On the other hand, condition (16) ensures that
[TABLE]
which contradicts condition (17).
To prove necessity, arguments similar to those used in thm. 1 can be used. In particular, it can be shown that the candidate Lyapunov function
[TABLE]
satisfies the conditions of the theorem if the considered system is FTS. However, for to be well-defined, we need the function to be invertible for all .
3.3 Connection with continuous-time LTV systems over ellipsoidal domains
The definition of FTS can be recast in terms of ellipsoidal initial and trajectory domains by substituting equation (4) with
[TABLE]
where is a positive-definite, symmetric matrix and is a positive-definite, symmetric, matrix-valued function. The well-posedness condition becomes . For the FTS of LTV systems, several equivalent necessary and sufficient conditions are given in [9, Thm. 2.1]. In particular, the following theorem is proven.
Theorem 3
[9, Thm. 2.1]** Consider the LTV system
[TABLE]
*with the initial domain and the trajectory domain , where . System (20) is FTS wrt if and only if there exists a positive-definite matrix-valued function that satisfies the following DLMI conditions *
[TABLE]
This theorem can be shown to be a particular case of thm. 1 in sec. 3.1. Let us start by choosing (the validity of this choice will be discussed at the end of this section). Then, if a strict inequality is considered444The equality case can be linked to the DLE condition (2.3a) in [9]. This point is not discussed here for brevity., property (5) reduces to (21a), while condition (6) can be recovered by observing that (21b-21c) yield:
[TABLE]
Hence, conditions (22a-22b) imply (6). On the other hand, once we fix the inverse implication is also true. To show this, first of all observe that can always be scaled up in such a way that
[TABLE]
without affecting the condition (cfr. cor. 1), i.e. conditions (22a-22b) hold. The first inequality can be rewritten as
[TABLE]
But since , for any other choice of there exists a scalar such that . This means that the point lies on , and hence
[TABLE]
i.e. . With a similar argument it can be shown that , since
[TABLE]
To conclude this section, we discuss how the choice derives from the same arguments in the necessity part of the proof of thm. 1. In thm. 1 we considered a function as in (10), i.e. the distance between the initial point of the trajectory and the set . We observed that, whenever , such distance must be strictly positive if the system is FTS. In the case of ellipsoidal domains, this is equivalent to
[TABLE]
Using the state-transition matrix of (20), we have
[TABLE]
and hence (23) reduces to
[TABLE]
Moreover, since
[TABLE]
which closely resembles (21b). Since , we immediately find that
[TABLE]
(compare these conditions with [9, Thm. 2.1 (ii-iii)]). Finally, by continuity we can choose an arbitrarily small such that conditions (21b)-(21c) hold for
[TABLE]
Observe that, at its core, this choice of again reduces to following the trajectories of (20) backwards and evaluating the distance of the initial point from the initial set through the quadratic forms associated to and .
3.4 Lyapunov function approximation through Physics-Informed Neural Networks
In this section, we propose a method to train a NN so that its output provides a Lyapunov function for continuous time systems which are FTS. Consider the following cost functional
[TABLE]
where
[TABLE]
In (26b), the parameter is introduced to enforce the strict inequality in (6) (see discussion below). The term appearing in (26b) is defined as
[TABLE]
and is evaluated on . The following result shows that the problem of finding a Lyapunov function for a system in the form (1) is equivalent to finding a such that for some (arbitrary) value of .
Proposition 1
A continuous function satisfies the conditions of thm. 1 if and only if for some value of .
Proof. If condition (5) holds, then for every and for every . Hence, and . On the other and, since is defined as the integral of a non-negative quantity, implies that its argument is equal to zero for all and , i.e. that . Similarly, if and only if for every and for every . But this is equivalent to requiring that
[TABLE]
In view of corollary 1, if this condition is satisfied for some value of , then also condition (6) holds. The proof is completed by observing that is equivalent to , since by definition.
In practice, we restrict our attention to functions of class by choosing continuously differentiable activation functions. The universal approximation property of NNs ensures that, even if activation functions are chosen, any continuous function can be approximated with arbitrary precision by the network, provided that a sufficiently large number of nodes is employed. It is worth to notice that it is usually required that the function approximated by the NN is evaluated on compact subsets of , which is precisely the case in FTS, where the conditions on must be satisfied only on the (compact) domains of interest. For , the orbital derivative (2) can be evaluated as
[TABLE]
where denotes the Lie derivative of along . The partial derivatives of with respect to and can be computed analytically via automatic differentiation [35]. To train the network, we sample the cost function in a (large) set of collocation points. Let us define
[TABLE]
where is the total number of considered collocation points in , and
[TABLE]
where and are the numbers of points taken in and in respectively. The internal collocation points are obtained by random sampling in both time and space, while the boundary points are computed by discretizing the time interval in discrete instants and then taking points for each time instant. The points are uniformly distributed in the initial domain . In eq. (29) we introduced a tolerance parameter to penalize the points where in is exactly equal to or slightly smaller than zero, similarly to the parameter in eqns. (26b)-(30). Moreover, in view of remark 1, we used the maximum in place of the supremum in the definition of . The resulting (approximate) loss function is
[TABLE]
where the weights have been introduced as additional tuning parameters in the algorithm.
The network is trained by using the matlab implementation of the standard Adam algorithm [30]. The default parameters have been used, i.e. a global learning rate of , a gradient decay factor of and a squared gradient decay factor of . This choice proved to be enough to obtain good convergence properties in the considered examples. To compute , the internal collocation points are divided into mini-batches, while all the points on and in the initial domain are used at each training iteration to compute . This choice reflects the fact that (6) only requires that the infimum of over all the boundary points is larger than the supremum of over the initial domain. However, in the definition of we considered all the collocation points on to obtain a well-behaved estimate of the cost function gradients with respect to the network parameters. The training procedure terminates when over all the internal collocation points and over all the boundary collocation points. Finally, since we are resorting to an approximate version of the cost function , after a solution is found we verify that the theorem conditions are satisfied over a set of test points different from the collocation points used in the training procedure.
Before concluding this section, it is worth to observe that the numerical implementation of the conditions of theorem 1 makes them only necessary in practice. If the considered system is not FTS, then the procedure will usually not converge to a feasible solution; however, it may happen that the algorithm does not converge even if the system is FTS, for instance when the number of nodes in the NN is not large enough to correctly represent the desired Lyapunov function.
4 Numerical examples
In this section we illustrate the proposed approach through some numerical examples.
It is worth to observe that the conditions in thm. 1 are based on the orbital derivative of the function , which can be evaluated by means of automatic differentiation techniques when is expressed through a neural network. On the other hand, the conditions in thm. 2 are based on recursive equations, and require the computation of the set at each time step. In the following, we will exploit the availability of automatic differentiation routines implemented in Matlab, and only focus on continuous-time systems. Note that, for simplicity, in the proposed examples ellipsoidal domains are considered. However, the algorithms only uses the collocation points placed in such domains and on their boundary, hence the technique can be easily applied to domains of generic shape.
The proposed procedure has been applied to the considered examples as shown in fig. 2. For all the examples, we used a Multi-Layer Perceptron architecture with softplus activation layers (the parameters for each example are reported in table 2). After an initial choice of the collocation point and of the NN and training parameters, the optimization procedure is run. If a solution is found, the required conditions are further tested on a suitable set of test points (e.g. a finely spaced grid over the considered domain). If the test succeeds, the property assessment can be considered to be successful. If the test fails, the training set of collocation points can be enlarged, e.g. by including the points where the test fails, and the procedure can be run again. If the algorithm fails to converge, the NN and training parameters can be modified (e.g. increasing the number of nodes/layers of the NN to make it more expressive, or lowering the learning rates to improve stability) before running the procedure again. If no solution is found with a reasonable set of parameters and/or in a reasonable time, the test is considered to have failed (red box in fig. 2). This could be due to the fact that the system does not satisfy the FTS property or to numerical reasons. It is worth to notice that this characteristic is common to most Lyapunov techniques, which often do not provide a straightforward way to verify that the system is unstable (in the classic or Finite-Time sense).
All the examples in this section have been implemented in matlab and run on a laptop equipped with an Intel Core i7-8750H CPU @2.20GHz processor, 16 GB of RAM and an NVIDIA Geforce GTX 1050 Ti graphic card. The code is available at https://github.com/AdrianoMele/NeuralNetFTS.
Example 1
We start by validating the procedure on a toy example, i.e. a 2D LTI system with fixed ellipsoidal domains. In particular, consider the system
[TABLE]
with and the domains defined by
[TABLE]
Classical FTS results ensure that the solution for this example can be found in terms of a time-invariant quadratic Lyapunov function (also see the discussion in section 3.3). In fact, the system is also Lyapunov-stable, and it can be shown that, in this case, the FTS conditions in thm. 3 can be reduced to the problem of finding a static Lyapunov function that also satisfies conditions (21b-21c). We apply the technique proposed in section 3.4 to the considered system and domains; we expect the algorithm to find a solution that is very close to a quadratic function.
The training parameters used in this example are reported in tables 1-2. The algorithm is able to find a solution after only 2 epochs (about s of training). The resulting is shown in fig. 3(a), while the collocation points and the initial and trajectory domains are shown in fig. 3(b). A quadratic best-fit of (red dots in fig. 3(a)) results in the symmetric positive-definite matrix
[TABLE]
The eigenvalues of are , i.e. the resulting satisfies condition (21a). On the other hand, the eigenvalues of are , i.e. condition (21c) does not hold. As discussed in sec. 3.3, a function that satisfies (21b-21c) can be obtained by a suitable scaling of .
Example 2
Consider the following system [36, (1.1.5)]
[TABLE]
where the constant is chosen equal to . This system provides an interesting analytical benchmark for the considered numerical procedure. In fact, in [36] it is shown that, letting , the solutions of (34) have the property
[TABLE]
We consider the case where and
[TABLE]
with . From (35) it can be seen that system (34) is FTS with respect to . Some sample trajectories of system (34) are shown in fig. 9(a) together with the initial and trajectory domains. With the parameters reported in tables 1-2, a solution is found after 9 training epochs (about s training). The resulting is shown at different time instants in fig. 7, while the resulting training curve (epochs vs. loss) for the considered parameters is shown in fig. 6.
In order to provide some insight on how the choice of the collocation points affects the algorithm performance, we performed a scan on the parameters of table 1 for this example. In particular, we varied the number of internal collocation points () while keeping the other parameters fixed ( and a time step equal to , i.e. ; see table 1). Then, we set and varied the number of collocation points in the initial domain (), the number of collocation points on the trajectory domain boundary for each time step () and the number of time instants (by reducing the time step to while keeping ). The results of this analysis are reported in fig. 4. The algorithm converged in all the considered cases, but for the ones represented by dashed lines (corresponding to cases with very few internal or boundary collocation points) a false positive was obtained, i.e. the resulting neural Lyapunov function violated the required conditions on some points of the test set. The test set for this analysis was generated by considering a different set of internal collocation points, obtained by restricting a equally spaced grid to the initial and trajectory domains, while keeping the same boundary points. The time needed for the algorithm to reach convergence is also reported for completeness; however, notice that no effort has been made to optimize the code performance. Moreover, it is also worth to remark that a certain amount of randomness is implicitly involved in the procedure (in the initialization of the network parameters and in the choice of the collocation points) and that the used platform is not Real-Time. The case reported in fig. 6 corresponds to the red line in 4.
Example 3
Finally, consider the equations of a damped pendulum
[TABLE]
which is a widely used benchmark problem in the field of systems and control theory. We set m/s2, kg, m, kg m2/s. We consider the case where , s, and
[TABLE]
where
[TABLE]
and is the rotation matrix given by
[TABLE]
With the parameters reported in tables 1-2, a solution is found after 10 training epochs (approximately m s). Some sample trajectories for the system (37) are shown in fig. 9(b), while the resulting at different time instants is shown in fig. 7. The obtained training curve (epochs vs. loss) for the considered parameters is shown in fig. 8.
5 Conclusions
In this article, we proposed some necessary and sufficient conditions for the FTS of nonlinear, non-autonomous dynamical systems in both continuous and discrete time. For the continuous-time case, the proposed conditions have been proven to be a generalization of standard LMI-based conditions that are customarily used for linear systems over ellipsoidal domains.
A novel technique has then been proposed to assess the FTS property. The main idea is to exploit the capability of NN to serve as universal functions approximators in order to find a closed-form expression for the required Lyapunov-like function. The effectiveness of the approach has been illustrated through different numerical examples in the case of continuous-time systems. To the best of our knowledge, this is the first time that a numerical technique allows to practically verify this property for such a large class of systems.
As discussed in the literature review of the introduction, the practical advantages of the FTS notion have been known since long time ago. However, after some pioneering works, the research community that had gathered around this topic remained almost silent until practical (D)LMI-based conditions to assess FTS emerged, at least in the case of linear systems, renewing the research interest in the field. Over the years, such conditions have been extended to uncertain, hybrid, stochastic, time-delay linear systems and to special classes of nonlinear systems. In this article, we proposed an alternative way to assess the FTS property for the case of general nonlinear systems. In this perspective, we expect that the method discussed here can be further refined and extended to more challenging classes of dynamical systems as happened for the linear case.
Of course, the approximate nature of the numerical method employed to verify the conditions of thm. 1 leads to some limitations. First of all, since a discrete set of collocation points is considered, the proposed numerical test is in fact only necessary: the required conditions on the function may be violated outside the training set of collocation points, but inside the domain of interest. However, this issue is quite standard when neural Lyapunov methods are considered. One possibility to mitigate this issue is to test the conditions on a set of points that is different (possibly also larger) with respect to the considered collocation points; this is the approach adopted in this paper. Furthermore, emerging research lines exist that focus on ways to assess the safety of similar methods in the framework of classic Lyapunov stability (see for example [24]). Another limitation of the proposed method is that there is no way of directly assessing that a system is Finite-Time unstable. When this is the case, the training procedure will usually fail, as it cannot find a Lyapunov-like function that satisfies the required conditions. A possible future line of research could be that of extending classical Lyapunov instability theorems to the field of Finite-Time stability analysis.
Finally, the availability of a Lyapunov function in closed-form, whose derivatives with respect to time and state variables can be simply computed through auto-differentiation techniques, paves the way to novel Finite-Time Stabilization and Control techniques based on Lyapunov methods.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Kamenkov [1953] G. Kamenkov, On stability of motion over a finite time interval (in russian), J. Appl. Math. Mech. 17 (1953) 529–540.
- 2Lebedev [1954 a] A. Lebedev, On stability of motion during a given interval of time (in russian), J. Appl. Math. Mech. 18 (1954 a) 139–148.
- 3Lebedev [1954 b] A. Lebedev, The problem of stability in a finite interval of time (in russian), J. Appl. Math. Mech. 18 (1954 b) 75–94.
- 4Dorato [1961] P. Dorato, Short time stability in linear time-varying systems, Proc. IRE Int. Convention Record Pt. 4, pp. 83–87.
- 5Weiss and Infante [1967] L. Weiss, E. Infante, Finite time stability under perturbing forces and on product spaces, IEEE Transactions on Automatic Control 12 (1967) 54–59.
- 6Michel and Porter [1972] A. Michel, D. Porter, Practical stability and finite-time stability of discontinuous systems, IEEE Transactions on Circuit Theory 19 (1972) 123–129.
- 7Bhat and Bernstein [2000] S. P. Bhat, D. S. Bernstein, Finite-time stability of continuous autonomous systems, SIAM Journal on Control and optimization 38 (2000) 751–766.
- 8Bernfeld and Lakshmikantham [1980] S. R. Bernfeld, V. Lakshmikantham, Practical stability and Lyapunov functions, Tohoku Mathematical Journal, Second Series 32 (1980) 607–613.
