Data-Driven Minimum-Energy Controls for Linear Systems
Giacomo Baggio, Vaibhav Katewa, and Fabio Pasqualetti

TL;DR
This paper introduces a data-driven method to compute minimum-energy controls for linear systems directly from experimental data, bypassing the need for system models and improving reliability especially for large, uncertain systems.
Contribution
It demonstrates that optimal controls can be learned exactly from data with finite experiments, challenging traditional model-based approaches.
Findings
Exact control learning from data without system models
Algorithm outperforms traditional model-based computation
Applicable to large, uncertain linear systems
Abstract
In this paper we study the problem of computing minimum-energy controls for linear systems from experimental data. The design of open-loop minimum-energy control inputs to steer a linear system between two different states in finite time is a classic problem in control theory, whose solution can be computed in closed form using the system matrices and its controllability Gramian. Yet, the computation of these inputs is known to be ill-conditioned, especially when the system is large, the control horizon long, and the system model uncertain. Due to these limitations, open-loop minimum-energy controls and the associated state trajectories have remained primarily of theoretical value. Surprisingly, in this paper we show that open-loop minimum-energy controls can be learned exactly from experimental data, with a finite number of control experiments over the same time horizon, without…
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel Reduction and Neural Networks · Control Systems and Identification · Probabilistic and Robust Engineering Design
Data-Driven Minimum-Energy Controls
for Linear Systems
Giacomo Baggio, Vaibhav Katewa, and Fabio Pasqualetti This material is based upon work supported in part by ARO 71603NSYIP. Giacomo Baggio, Vaibhav Katewa and Fabio Pasqualetti are with the Department of Mechanical Engineering, University of California at Riverside, {gbaggio, vkatewa, fabiopas}@engr.ucr.edu.
Abstract
In this paper we study the problem of computing minimum-energy controls for linear systems from experimental data. The design of open-loop minimum-energy control inputs to steer a linear system between two different states in finite time is a classic problem in control theory, whose solution can be computed in closed form using the system matrices and its controllability Gramian. Yet, the computation of these inputs is known to be ill-conditioned, especially when the system is large, the control horizon long, and the system model uncertain. Due to these limitations, open-loop minimum-energy controls and the associated state trajectories have remained primarily of theoretical value. Surprisingly, in this paper we show that open-loop minimum-energy controls can be learned exactly from experimental data, with a finite number of control experiments over the same time horizon, without knowledge or estimation of the system model, and with an algorithm that is significantly more reliable than the direct model-based computation. These findings promote a new philosophy of controlling large, uncertain, linear systems where data is abundantly available.
Index Terms:
Linear systems, optimal control, statistical learning, identification for control, control of networks.
I Introduction
Consider the discrete-time linear time-invariant system
[TABLE]
where, respectively, and denote the system and input matrices, and and describe the state and input of the system. For a control horizon and a desired state , the minimum-energy control problem asks for the input sequence with minimum energy that steers the state from to in steps, and it can be formulated as
[TABLE]
As a classic result [1], the minimization problem (5) is feasible if and only if , where
[TABLE]
is the -steps controllability Gramian and denotes the image of the matrix . Further, the solution to (5) is
[TABLE]
where is the Moore–Penrose pseudoinverse of [2].
The controllability Gramian (6) and the minimum-energy control input (7) identify fundamental control limitations for the system (1), and have been extensively used to solve design [3], sensor and actuator placement [4], and control problems [5] for systems and networks. However, besides their theoretical value, the optimal control input (7) is rarely used in practice or even computed numerically because (i) it relies on the perfect knowledge of the system dynamics, (ii) its performance is not robust to model uncertainties, and (iii) the controllability Gramian is typically ill-conditioned, especially when the system is large [5, 6]. This implies that the control sequence (7) is numerically difficult to compute, and that its implementation leads to errors [7]. To the best of our knowledge, efficient and numerically reliable methods to compute minimum-energy control inputs are still lacking.
Paper contributions. This paper features two main contributions. First, we show that minimum-energy control inputs for linear systems can be computed from data obtained from control experiments with non-minimum-energy inputs, and without knowledge or estimation of the system matrices. Thus, optimal inputs can be learned from non-optimal ones, and we provide three different expressions for doing so. Surprisingly, we also establish that a finite number of non-optimal control experiments is always sufficient to compute minimum-energy control inputs towards any reachable state. Second, we show that the data-driven computation of minimum-energy inputs is numerically as reliable as the computation of the inputs based on the exact knowledge of the system matrices, and substantially more reliable than using the closed-form expression based on the Gramian. Further, as minor contributions, we (i) derive bounds on the number of required control experiments as a function of the dimension of the system, number of control inputs, and length of the control horizon, (ii) discuss the effect of noisy data on the data-driven expressions, and (iii) extend our data-driven framework to the case of output measurements.
Our results suggest the tantalizing hypothesis that several optimal control problems can be solved efficiently and reliably using a combination of data-driven algorithms and system properties (in our setup, linearity of the dynamics), even when the system model is uncertain or unknown.
Related work. Several works investigate the problem of estimating optimal controls for linear systems from input-output data. The classic model-based approach [8] consists of (i) identifying a model of the system from the available data, and (ii) using the estimated model to design the optimal control inputs. Data-driven algorithms have been proposed in [9, 10, 11, 12] for the LQR/LQG problem. In particular, the approach pursued in these papers relies on the estimation of the Markov parameters of the system, thereby bypassing the identification step of the model-based approach. Differently from the above approaches, in this paper we focus on computing open-loop minimum-energy inputs from experimental data, without reconstructing the system matrices and where the experiments use arbitrary control inputs. To the best of our knowledge, this paper addresses a novel problem and provides new and numerically more reliable expressions for the computation of minimum-energy control inputs.
II Learning minimum-energy control inputs
In vector form, the minimum-energy control problem asks to find the minimum-norm solution to the following equation:
[TABLE]
where the vector contains the control inputs over the control horizon , namely , and denotes the -steps controllability matrix.111To simplify the technical treatment and without compromising generality, we assume that is reachable in -steps, i.e., . Then, if the controllability matrix is known, the minimum-energy control input to reach is
[TABLE]
Instead of using (8), in this paper we aim to compute minimum-energy control inputs leveraging a set of control experiments and assuming that the system matrices, and thus the controllability matrix, are not available. The -th control experiment consists of applying the input sequence to (1), and measuring the system state at time , namely , where
[TABLE]
We remark that the inputs are arbitrary and not necessarily of minimum-norm. In vector form, the available data is
[TABLE]
where is the state at time with input as in (9).222While the full state trajectory could be measured [13], here we show that measuring the final state is sufficient to compute minimum-energy inputs.
II-A Data-driven minimum-energy controls
Because we only rely on the experimental data to learn the minimum-energy control input to reach a desired state, we postulate that such input can be computed as a linear combination of the inputs . Thus, we formulate and study the following constrained minimization problem:
[TABLE]
where is the optimization variable. As we show in Theorem II.1, a first data-driven expression for the minimum-energy control input derives from a solution to (13). We start with the expression of the minimum-energy control input for the case , and we postpone the general case to Remark 2. Let and denote the range-space and the null-space of the matrix , respectively. With a slight abuse of notation, we write (resp. ) to say that is a basis of (resp. ). A matrix is full row rank if the dimension of its range-space equals the number of its rows.
Theorem II.1
(Data-driven minimum-energy control inputs when )* If the matrix in (10) is full row rank, then, for any final state , the minimum-energy input equals*
[TABLE]
where and is as in (10).
Proof:
We first show that (13) is feasible, and that . Notice that, because is full row rank, there exists such that , where is the minimum-energy control input to reach . Additionally, satisfies the constraint in (13) because . Finally, because is unique [1], is also a solution to (13), and its computation is equivalent to computing the input .
To compute we solve the constraint and substitute it in the cost function. Namely, , where and is an arbitrary vector. Equating to zero the derivative of the cost function with respect to , we obtain This implies that , from which (14) follows by letting . ∎
Theorem II.1 provides an expression of the minimum-energy control input, which only uses data originated from a set of control experiments, and does not require the knowledge of the system matrices. Importantly, Theorem II.1 shows that minimum-energy control inputs can be directly computed based on a number of control experiments with arbitrary, thus not minimum-energy, inputs. Further, Theorem II.1 assumes that is full row rank, which guarantees the computation of the minimum-energy input for any final state . When is not full row rank but , the minimum-energy control input can still be computed as in Theorem II.1. Instead, when , the minimum-energy input cannot be computed as a (linear) combination of the experimental data (10). In this case, the data-driven input (14) reaches the desired final state , if , or the final state that is closest to , if . To see this, let be as in (14) and note that
[TABLE]
which shows that is the orthogonal projection of onto . This in particular implies that the error is non-increasing in the number of experiments , and it vanishes when the experimental data satisfies . Finally, Theorem II.1 can also be used to quantify the number of experiments needed to compute minimum-energy inputs.
Corollary II.2
(Required number of control experiments to compute minimum-energy inputs)* Let be the dimension of the system, the number of inputs, the control horizon, and the number of control experiments. Then,*
- (i)
* is necessary to compute minimum-energy control inputs towards any arbitrary final state ;* 2. (ii)
* is sufficient to compute minimum-energy control inputs towards any arbitrary final state , provided that the inputs are linearly independent.*
Proof:
(Necessity) Assume by contradiction that the number of experiments is strictly less than . Then, , and there exists . Then, the minimization problem (13) is infeasible, and the minimum-energy control input cannot be computed from the inputs .
(Sufficiency) Let the experimental inputs be linearly independent. Then, is invertible and, for any , there exists a solution such that . This shows that the minimum-energy input can be computed from the data. ∎
Corollary II.2 characterizes the number of control experiments that are required to compute minimum-energy control inputs from experimental data. In particular, as few as experiments are needed, in which case the experiments must contain linearly independent minimum-energy control inputs, and as many as experiments are sufficient, in which case the control inputs can be selected arbitrarily provided that they form a linearly independent set of vectors. This also shows that optimal control inputs can be learned from a finite number of non-optimal control inputs.
Example 1
(Data-driven control inputs when )* We consider a two-dimensional system with matrices and as in Fig. 1(b), control horizon , initial state , and final state . We vary the number of control experiments from to , where the inputs are as in Fig. 1(c). For each number of control experiments, we compute the data-driven input (14), and report the corresponding state trajectory and norm in Fig. 1(a) and Fig. 1(d), respectively. Notice that, when , the data-driven input does not steer the system state to . Instead, for the state trajectory reaches . Finally, the data-driven input has minimum norm only when . *
Remark 1
(Geometric properties of (14))* Several geometric properties of (14) can be highlighted. First, when is full row rank. In fact, , showing that . Further, if and , then, , showing that and . Thus, when is full row rank. Second, is the orthogonal projection onto the kernel of and, consequently, is orthogonal to . This is expected, because is the minimum-energy control input to reach the state . *
II-B An alternative expression of minimum-energy controls
In this subsection, we present a different optimization problem that can be used to derive an equivalent expression of the data-driven minimum-energy control input (14). Specifically, we consider the following problem, which encodes the problem of estimating the controllability matrix from data:
[TABLE]
where denotes the Frobenius norm of a matrix. The above problem has a unique solution, which equals . Notice that the minimization problem (16) returns an estimate of the controllability matrix, which can be used to compute the input as . We next show that coincides with the control input (14).
Theorem II.3
(Equivalent expressions of data-driven minimum-energy inputs)* Let and be as in (10). Then,*
[TABLE]
Proof:
We show that . That is, we show that satisfies the four conditions [2] defining the Moore–Penrose pseudoinverse of . To this aim, let . Since is the orthogonal projection onto ,
[TABLE]
Because , we have . Since is the orthogonal projection onto , we have
[TABLE]
Further, using , we obtain
[TABLE]
Finally, since denotes the orthogonal projection onto , and the orthogonal projection onto , we have
[TABLE]
where the last implication follows because and are symmetric. To conclude, we show that by proving the four Moore–Penrose conditions [2]:
- (i)
I ; 2. (ii)
; 3. (iii)
; 4. (iv)
.
∎
II-C An asymptotic expression of minimum-energy controls
The minimization problem (16) reconstructs the forward controllability matrix , from which minimum-energy control inputs can be derived by subsequently computing . To avoid the computation of and obtain a potentially simpler expression, we next consider the problem of directly estimating from the experimental data:
[TABLE]
Notice that the latter problem is equivalent to estimating the inverse map from to , and it is typically more difficult than the problem of estimating the map from to . In fact, while the forward map is unique, the inverse map is typically not.333In particular, the inverse map is not unique whenever . Further, the control input obtained by solving the minimization problem (23) is not guaranteed to be of minimum norm and to steer the system to , as these constraints do not appear in the minimization problem. In what follows, we say that a sequence of random matrices converges almost surely (a.s.) to a matrix , and denote it with , if .
Theorem II.4
(Asymptotically equivalent expression to (14))* Let and be as in (10). The unique solution to the minimization problem (23) is*
[TABLE]
and the corresponding control input can be written as
[TABLE]
Further, if is full row rank, then . That is, the control steers the system from to . Finally, if the entries of are i.i.d. random variables with zero mean and nonzero finite variance, then as . That is, as the number of control experiments increases, the input converges a.s. to the optimal input .
Proof:
The expression (24) follows from the properties of the Moore–Penrose pseudoinverse. For the second claim, we note that , where we have used that is full row rank and . To prove the third statement, let , and let the control experiments be chosen so that the entries of are i.i.d. random variables with zero mean and finite variance . Let denote the -th entry of , and observe that the -th entry of equals . Because is an i.i.d. sequence of random variables, for all , and, due to the Strong Law of Large Numbers [14, p. 6], when we have
[TABLE]
where denotes the expected value operator. Then,
[TABLE]
Next, consider the function , . Note that is continuous at , ,444In fact, since for any positive definite , it holds for any sequence of positive definite matrices such that [2, p. 238]. and [2, p. 49]. To conclude, we employ the Continuous Mapping Theorem [14, Theorem 2.3(iii)] and (26) to obtain, as ,
[TABLE]
∎
Theorem II.4 contains a data-driven expression of the minimum-energy control input for a linear system, which does not rely on the estimation of the system matrices or the controllability matrix. As we show in the next section, the expression (25) is not only conceptually simpler than the classic Gramian-based expression of the minimum-energy control input and our other data-driven expressions (14) and (17), but it is also numerically more reliable as it requires a smaller number of operations. Yet, differently from (14) and (17), the expression (25) coincides with the minimum-energy control only asymptotically in the number of experiments, and assuming that the entries of the input matrix are zero-mean i.i.d. random variables with nonzero finite variance.
Remark 2
(Data-driven minimum-energy control inputs when )* When , the computation of the minimum-energy control input to reach is more involved, as the unknown matrix and vector enter the relation (9).555Notice that the term remains unknown even if the exact value of is known. Thus knowledge of does not modify the expressions we obtain when is treated as an unknown variable. Yet, under a mild assumption on the experimental inputs , minimum-energy inputs can still be computed with a finite number of experiments. To see this, consider the problem*
[TABLE]
Assume that the matrix is full row rank, and that there exists a vector such that and . The first assumption guarantees that there exists such that , and thus the computation of the minimum-energy control for any final state (cf. Theorem 2.1). The second assumption ensures that there exists satisfying , which allows us to correctly reconstruct the term from .666These assumptions can always be satisfied by properly designing the experimental inputs, or by running sufficiently many random experiments. In fact, let and notice that , where is the minimum-energy control input to reach . Further, using (9) and , we have Then, similarly to the proof of Theorem II.1, a solution to (29) determines the minimum-energy input.
To solve the minimization problem (29), let and . Then, similarly to Theorem II.1, we obtain where , and
[TABLE]
Because the matrix is required to have a nontrivial null-space, a sufficient number of linearly-independent non-optimal experiments for the computation of the minimum-energy control input to any arbitrary final state is .
Finally, from the above reasoning and the proof of Theorem II.3 and Theorem II.4, the minimum-energy input (30) can be written equivalently as , where the last equality holds asymptotically for any choice of inputs satisfying the assumptions in Theorem II.4.
Remark 3
(Data-driven expressions with noisy data)* Let the measurements of the input and the final state be corrupted by noise. Let and be the matrices obtained by concatenating all noisy measurements. The data-driven estimates (14), (17), and (25) computed from the noisy data are typically biased. To see this, consider the system , , , and . In this simple case, expressions (14), (17), and (25) are equivalent and, assuming that , read as . If and are independent random variables uniformly distributed in , with , it holds*
[TABLE]
where denotes the expected value with respect to . It can be shown that, if and are nonzero, the previous equation vanishes only in the limit . This implies that all data-driven expressions in this simple case are biased. When , a quantitative characterization of the bias (and covariance) of the data-driven expressions appears to be difficult, due to the presence of pseudoinverse operations. However, numerical simulations with i.i.d. normally distributed noise (see also Fig. 2) suggest that (i) all data-driven expressions are biased in the case of noisy measurements, (ii) the magnitude of the bias is proportional to the standard deviation of the noise for (17) and (25), while it increases rapidly as grows and sets to a constant value for (14).
Remark 4
(Data-driven expressions with output measurements)* Consider the system*
[TABLE]
where , and assume that for each experimental input , , we can measure the output of the system at time , namely, . Let be the matrix concatenating all output measurements, and assume that the system is output controllable in steps. That is, the -steps output controllability matrix has full row rank [15]. The minimum-energy input to reach the output in steps is . All results discussed in this paper apply to the case of output control after substituting and with and , respectively.
III Numerical analysis
What remains unclear from the previous analysis is the benefit, if any, in collecting a large number of control experiments. We next show that increasing the number of control experiments can improve the numerical reliability and accuracy of computing minimum-energy control inputs.
In Fig. 3 we compare the numerical performance of the model-based expressions of the minimum-energy controls and (Gramian-based), with our data-driven expressions in (14), (17), and (25). In particular, in Fig. 3(a)-(b) we plot the norm of the control inputs and the numerical errors in reaching the final state , for all strategies and as a function of the number of control experiments. Here, we focus on a “worst-case” analysis and choose a small input dimension (), since a large value of certainly improves the conditioning of all expressions. Fig. 3(a) shows that the norm of the data-driven control inputs (14) and (17) equals its minimum value when (as predicted by Theorems II.1 and II.3), whereas the norm of the data-driven input (25) converges to its minimum value only asymptotically (as predicted by Theorem II.4). Fig. 3(b) shows that, for sufficiently large , the final state reached by the three data-driven control strategies is almost as close to as the one computed via the model-based formula , and considerably closer to than the state reached by the Gramian-based control input, with expressions (14) and (25) being the most accurate, showing that the computation of the minimum-energy control input via our data-driven expression is as reliable as the computation of the input based on the exact knowledge of the system matrices, and numerically more reliable than the model-based Gramian formula. Instead, in Fig. 3(c)-(d) we plot the norm of the control inputs obtained through the different strategies described above and their corresponding errors in the final state as a function of the system dimension . As expected, the accuracy of the Gramian-based control input deteriorates rapidly as increases. Yet, surprisingly, the data-driven expressions of the minimum-energy control inputs remain accurate for systems of considerably larger dimension. Further, the data-driven control (25) yields the smallest error in the final state among the three data-driven strategies. This could be due to the simpler form of (25), which requires the computation of only one pseudoinverse, or to the fact that the energy of (25) reaches the minimum value only asymptotically in . Finally, Fig. 3(c)-(d) show that expression (14) becomes numerically unreliable for smaller values of the system dimension compared to (17) and (25). This is likely because of the additional computations in (14).
IV Conclusion and future work
In this paper we derive data-driven expressions of open-loop minimum-energy control inputs for linear systems. Leveraging linearity of the dynamics, we show that such optimal controls can be learned from a finite number of control experiments, without knowing or reconstructing the system matrices, and where the control experiments are conducted with non-optimal and arbitrary inputs. We derive three different data-driven expressions of minimum-energy controls: while (17) appears to be the simplest exact data-driven expression, (14) constitutes a radically different and new way of computing minimum-energy controls, and highlights several geometric connections between the minimum-energy solutions and the experimental data, and (25) provides a simple way of computing a family of data-driven, sub-optimal, minimum-energy controls. We further illustrate that our data-driven expressions of the minimum-energy inputs are simpler and numerically more reliable than the classic Gramian-based expression, especially when the dimension of the system increases.
The results of this paper support the intriguing idea of combining model-based control methods with data-driven techniques, showing that this new framework has the potential to considerably increase the reliability and effectiveness of the two parts alone. This paper also creates several directions of future research, including the extension to closed-loop, noisy, and model predictive control problems.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] T. Kailath. Linear Systems . Prentice-Hall, 1980.
- 2[2] A. Ben-Israel and T. N. E. Greville. Generalized inverses: theory and applications , volume 15 of CMS Books in Mathematics . Springer-Verlag New York, 2nd edition, 2003.
- 3[3] S. Zhao and F. Pasqualetti. Networks with diagonal controllability gramians: Analysis, graphical conditions, and design algorithms. Automatica , 102:10–18, 2019.
- 4[4] T. H. Summers, F. L. Cortesi, and J. Lygeros. On submodularity and controllability in complex dynamical networks. IEEE Transactions on Control of Network Systems , 3(1):91–101, 2016.
- 5[5] F. Pasqualetti, S. Zampieri, and F. Bullo. Controllability metrics, limitations and algorithms for complex networks. IEEE Transactions on Control of Network Systems , 1(1):40–52, 2014.
- 6[6] D. C. Sorensen and Y. Zhou. Bounds on eigenvalue decay rates and sensitivity of solutions to Lyapunov equations. Technical Report 02-07, Rice University, Houston, TX, 2002.
- 7[7] J. Sun and A. E. Motter. Controllability transition and nonlocality in network control. Physical Review Letters , 110(20):208701, 2013.
- 8[8] M. Gevers. Identification for control: From the early achievements to the revival of experiment design. European Journal of Control , 11:1–18, 2005.
