<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Learning-Based Adaptive Optimal Control of Linear Time-Delay Systems: A Policy Iteration Approach</title></titleStmt>
			<publicationStmt>
				<publisher>IEEE</publisher>
				<date>05/01/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10479220</idno>
					<idno type="doi">10.1109/TAC.2023.3273786</idno>
					<title level='j'>IEEE Transactions on Automatic Control</title>
<idno>0018-9286</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Leilei Cui</author><author>Bo Pang</author><author>Zhong-Ping Jiang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[This paper studies the adaptive optimal control problem for a class of linear time-delay systems described by delay differential equations (DDEs). A crucial strategy is to take advantage of recent developments in reinforcement learning(RL) and adaptive dynamic programming (ADP) and develop novel methods to learn adaptive optimal controllers from finitesamples of input and state data. In this paper, the data-driven policy iteration (PI) is proposed to solve the infinite-dimensional algebraic Riccati equation (ARE) iteratively in the absence of exact model knowledge. Interestingly, the proposed recursive PI algorithm is new in the present context of continuous-time time-delay systems, even when the model knowledge is assumed known. The efficacy of the proposed learning-based control methods is validated by means of practical applications arising from metal cutting and autonomous driving.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>Time-delay systems are ubiquitous in many branches of science and engineering; see the books <ref type="bibr">[1]</ref>- <ref type="bibr">[3]</ref> for many references and examples. Recently, many theoretical results are developed for time-delay systems, such as input-to-state stability <ref type="bibr">[4]</ref>, robust H &#8734; control <ref type="bibr">[5]</ref>, and stability analysis of systems with time-varying delay <ref type="bibr">[6]</ref>, <ref type="bibr">[7]</ref>. Examples of timedelay systems are in transportation <ref type="bibr">[8]</ref>, <ref type="bibr">[9]</ref>, biological motor control <ref type="bibr">[10]</ref>, and multi-agent systems <ref type="bibr">[11]</ref>, <ref type="bibr">[12]</ref>. It is thus not surprising that the optimal control problem of time-delay systems has been a fundamentally important, yet challenging, research topic in control theory for several decades. For instance, Eller et al. <ref type="bibr">[13]</ref> and Ross et al. <ref type="bibr">[14]</ref>, <ref type="bibr">[15]</ref> proposed solutions to the finite-horizon and infinite-horizon linear quadratic (LQ) optimal control problems of linear time-delay systems, respectively. In these papers, the certain infinitedimensional Riccati equations have to be solved. For this problem, many numerical algorithms have been developed <ref type="bibr">[16]</ref>- <ref type="bibr">[18]</ref>. However, an accurate model of the system is required for these algorithms, and in reality, it is difficult to derive an exact model due to the complexity of the system and inevitable system uncertainties. Therefore, developing a model-free optimal control approach for time-delay systems is a timely research topic of both theoretical importance and practical relevance. Recent progresses and successes in RL provide an opportunity to advance the state of the art in the area of adaptive optimal control of time-delay systems.</p><p>RL is an important branch of machine learning and is aimed at maximizing (or minimizing) the cumulative reward (or cost) through agent-environment interactions. Traditional RL has some fundamental limitations. For example, it often assumes that the environment is depicted by Markov decision processes or discrete-time systems with finite state-action space. Often, the stability aspect of the learned controller by RL is not guaranteed. For many systems described by differential equations, such as autonomous vehicles and quadrupedal robots, the state and action spaces are infinite and the stability of the controller generated by an RL algorithm is innegligible. Therefore, for these safety-critical engineering systems, conventional RL is not directly applicable to learning stable optimal controllers from data, which has motivated the development of ADP <ref type="bibr">[19]</ref>, <ref type="bibr">[20]</ref>. In contrast with conventional RL, the purpose of continuous-time ADP is addressing decision-making problems for dynamical systems described by differential equations, of which both the state and action spaces are continuous. It is theoretically shown that at each iteration of ADP, a stable suboptimal controller with improved performance is obtained. Besides, the sequence of these sub-optimal controllers converges to the optimal one <ref type="bibr">[19]</ref>.</p><p>Recently, ADP techniques are developed for various important classes of linear/nonlinear/periodic dynamical systems and for optimal stabilization, tracking and output regulation problems <ref type="bibr">[19]</ref>, <ref type="bibr">[21]</ref>- <ref type="bibr">[25]</ref>. However, a systematic ADP approach to adaptive optimal control of continuous-time time-delay systems is lacking, due to the infinite-dimensional nature of these systems. In <ref type="bibr">[26]</ref>, although the model-free data-driven control for continuous-time time-delay systems is studied, discretization and/or linearization techniques are applied to transfer the time-delay system to a finite-dimensional delay-free system with augmented states, which leads to an approximate model. In <ref type="bibr">[9]</ref>, <ref type="bibr">[27]</ref>- <ref type="bibr">[32]</ref>, ADP for discrete-time systems with time delays is studied. Due to the finite dimensionality of discretetime systems with time delays, these proposed ADP methods are not applicable to continuous time-delay systems. In <ref type="bibr">[33]</ref>, <ref type="bibr">[34]</ref>, ADP technique is applied for both linear and nonlinear systems with time delays, but the resulting controller cannot achieve optimality <ref type="bibr">[33,</ref><ref type="bibr">Remark 9.1]</ref>. Technically, there are several obstacles in the generalization of ADP to time-delay systems. Firstly, for an infinite-dimensional system, optimality properties are hard to analyze, because the corresponding ARE are complex partial differential equations (PDEs). Secondly, stability analysis and controller design for a time-delay system are much more challenging than finite-dimensional systems.</p><p>Therefore, the model-free optimal control for a continuoustime time-delay system remains an open problem.</p><p>In this paper, in the absence of the precise knowledge of system dynamics, a novel data-driven PI approach for continuous-time linear time-delay systems is proposed based on ADP. The contributions of this paper are as follows. Firstly, inspired by Kleinman's model-based PI algorithm for delayfree linear systems <ref type="bibr">[35]</ref>, a new model-based PI algorithm is proposed for a class of linear time-delay systems. Given an initial admissible controller, both the stability of the updated sub-optimal controller and the convergence of the algorithm to the (unknown) optimal controller are proved theoretically. It is worth pointing out that due to the infinite dimensionality, both the value function and the control law are functional of the system's state, which in consequence increases the difficulty to design the PI algorithm. Secondly, based on the model-based PI, this paper contributes a data-driven PI approach to adaptive optimal controller design using only the data measured along the trajectories of the system.</p><p>The rest of this paper is organized as follows. Section II introduces the class of linear time-delay systems and formulates the adaptive optimal control problem to be addressed in the paper. Section III proposes a model-based PI approach to iteratively solve the LQ optimal control problem for linear time-delay systems. In Section IV, a data-driven PI approach is proposed, and the convergence property of the algorithm is analyzed. Section V illustrates the proposed data-driven PI approach by means of two practical examples. Finally, some concluding remarks are drawn in Section VI.</p><p>Notations: In this paper, R (R + ) denotes the set of (nonnegative) real numbers and N + denotes the set of positive integers. | &#8226; | denotes the Euclidean norm of a vector or Frobenius norm of a matrix. &#8226; &#8734; denotes the supremum norm of a function. C 0 (X, Y ) denotes the class of continuous functions from the linear space X to the linear space Y . AC ([-&#964;, 0], R n ) denotes the class of absolutely continuous functions. df d&#952; (&#8226;) denotes the function which is the derivative of the function f . &#8853; denotes the direct sum. L i ([-&#964;, 0], R n ) denotes the space of measurable functions for which the ith power of the Euclidean norm is Lebesgue integrable, <ref type="figure"/>and<ref type="figure">L(X, Y</ref> ) denote the class of continuous bounded linear operators from X to X and from X to Y , respectively. &#8855; denotes the Kronecker product. vec(A) = a 1 , a </p><p>[a] i,j denotes the sub-vector of the vector a comprised of the entries between the ith and jth entries. A &#8224; denotes the Moore-Penrose inverse of matrix A.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. PROBLEM FORMULATION AND PRELIMINARIES</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Problem Formulation</head><p>Consider a linear time-delay system</p><p>where &#964; &#8712; R + denotes the constant delay of the system and is assumed to be known, </p><p>with the domain of A given by D. Let z 0 = [x (0), x 0 (&#8226;)] &#8712; D denote the initial state of the system (2). The quadratic performance index is defined as</p><p>where</p><p>Definition 1 : A control policy u c (x t ) is admissible for system (1) with respect to (3), if system (1) with u c (x t ) is globally asymptotically stable (GAS) at the origin <ref type="bibr">[37,</ref><ref type="bibr">Definition 1.1]</ref>, and the performance index ( <ref type="formula">3</ref>) is finite for all z 0 &#8712; D.</p><p>x(t) is exponentially stabilizable and detectable, which are defined in <ref type="bibr">[36,</ref><ref type="bibr">Definition 5.2.1]</ref> and checked by <ref type="bibr">[36,</ref><ref type="bibr">Theorem 5.2.12]</ref>. Remark 1. Assumption 1 is a standard prerequisite for LQ optimal control of system (1) to ensure the existence of a unique stabilizing solution <ref type="bibr">[36]</ref>, <ref type="bibr">[38]</ref>.</p><p>Given the aforementioned assumption, the problem to be studied in this paper can be formulated as follows.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Problem 1. Given an initial admissible controller</head><p>d&#952;, and without knowing the dynamics of system <ref type="bibr">(1)</ref>, design a PI-based ADP algorithm to approximate the optimal controller in (4) using only the inputstate data measured along the trajectories of the system.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Optimality and Stability</head><p>For a linear system without time delay, i.e. A d = 0 in (1), one can find the optimal solution by solving the ARE as discovered by Kalman <ref type="bibr">[39]</ref>. Correspondingly, for system (1), the optimal solution is stated as follows.</p><p>Lemma 1 ( [14], <ref type="bibr">[40]</ref>). For system <ref type="bibr">(1)</ref> with Assumption 1,</p><p>is the optimal controller minimizing (3), and the corresponding minimal value functional is</p><p>where P * 0 = P * 0 , P * 1 (&#952;), and P * 2 (&#952;, &#958;) = P * 2 (&#958;, &#952;) for &#952;, &#958; &#8712; [-&#964;, 0] are the unique stabilizing solution to the following PDEs</p><p>By [36, Theorem 6.2.7], the time-delay system (1) in closedloop with u * is exponentially stable at the origin.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. MODEL-BASED POLICY ITERATION</head><p>According to Lemma 1, the optimal controller is obtained by solving <ref type="bibr">(6)</ref> . Since ( <ref type="formula">6</ref>) is nonlinear with respect to P * 0 , P * 1 and P * 2 , it is difficult to solve it directly. In this section, a model-based PI algorithm is proposed to simplify the process of solving <ref type="bibr">(6)</ref>.</p><p>Given an admissible controller</p><p>d&#952;, the model-based PI algorithm for system (1) is proposed as follows.</p><p>1) Policy Evaluation: For i &#8712; N + , and &#958;, &#952; &#8712; [-&#964;, 0], calculate P 0,i = P 0,i , P 1,i (&#952;), and P 2,i (&#952;, &#958;) = P 2,i (&#958;, &#952;) by solving the following PDEs,</p><p>where</p><p>2) Policy Improvement: Update the policy u i+1 by</p><p>The policy evaluation step calculates the value functional V i (x 0 ) for the controller u i , which is expressed as</p><p>By policy improvement, the value functional is monotonically decreasing (V i+1 (x 0 ) &#8804; V i (x 0 )), and converges to the optimal value functional V * (x 0 ). Correspondingly, P 0,i , P 1,i (&#952;) and P 2,i (&#958;, &#952;) converge to the optimal solutions P * 0 , P * 1 (&#952;) and P * 2 (&#958;, &#952;), respectively. The convergence of the model-based PI algorithm is rigorously demonstrated in Theorem 1. Before stating Theorem 1, we first introduce Lemma 2 which is instrumental for the proof of Theorem 1. By Lemma 2, for a linear controller u L , if J(x 0 , u L ) is finite, the closed-loop system consisting of (1) and u L is globally exponentially stable.</p><p>Lemma 2. Consider system <ref type="bibr">(1)</ref> with Assumption 1. If a linear controller u L (x t ) = -Kz(t) satisfies J(x 0 , u L ) &lt; &#8734; for any z 0 &#8712; D, where K &#8712; L(M 2 , R m ), then the closed-loop system with u L is globally exponentially stable at the origin.</p><p>Proof. The details of the proof are in [41, <ref type="bibr">Lemma 2]</ref>.</p><p>Theorem 1. Given an admissible control u 1 (x t ), for P 0,i , P 1,i (&#952;), P 2,i (&#958;, &#952;), and u i+1 (x t ) obtained by solving <ref type="bibr">(7)</ref> and <ref type="bibr">(8)</ref>, and for all i &#8712; N + , the following properties hold 1)</p><p>Proof. Along the trajectories of (1) driven by u, where u without subscript stands for an arbitrary input, Vi (x t ) is</p><p>The detailed derivation of ( <ref type="formula">10</ref>) is in [41, Equation ( <ref type="formula">10</ref>)] Property 1) is proved by induction. When i = 1, the admissibility of u 1 (x t ) is given. For i &gt; 1, assume that u i is admissible. When system (1) is driven by u i , by <ref type="bibr">(10)</ref>, the expression of Vi (</p><p>Following the fact that u i is admissible and integrating <ref type="bibr">(11)</ref> from 0 to &#8734;, we have</p><p>By <ref type="bibr">(10)</ref>, along the trajectories of (1) driven by u i+1 ,</p><p>Integrating both sides of (13) from 0 to &#8734; yields</p><p>It follows from ( <ref type="formula">14</ref>) and Lemma 2 that u i+1 is a globally and exponentially stabilizing controller. By Definition 1, u i+1 is admissible. Via induction, u i is admissible for any i &#8712; N + .</p><p>Along the trajectories of system (1) driven by u i+1 , by <ref type="bibr">(10)</ref>,</p><p>Since u i+1 is admissible, integrating (15) from 0 to &#8734; yields</p><p>) is obtained by <ref type="bibr">(14)</ref>. Furthermore, since V * (x 0 ) = J(x 0 , u * ) is the minimal value functional by Lemma 1, for any i &#8712; N + , V * (x 0 ) &#8804; V i (x 0 ). Therefore, the proof of 2) is completed. Define P i &#8712; L(M 2 ), such that for any z 0 , P i z 0 is</p><p>It is easy to check that P i is symmetric <ref type="bibr">[42,</ref><ref type="bibr">Chapter 6]</ref>, and non-negative [42, Definition 6.3.1], and V i (x 0 ) = z 0 , P i z 0 . Furthermore, according to statement 2), for any i &#8712; N + , P * &#8804; P i+1 &#8804; P i . According to [42, Theorem 6.3.2], there exists P p = P p &#8805; 0, such that for all z 0 &#8712; M 2 , we have</p><p>Therefore, P 0,i , P 1,i (&#952;) and P 2,i (&#958;, &#952;) pointwisely converge to P 0,p , P 1,p (&#952;), and P 2,p (&#958;, &#952;), respectively. When P i converges, P 0,p , P 1,p (&#952;) and P 2,p (&#958;, &#952;) satisfy ( <ref type="formula">7</ref>) with i replaced by p. K 0,i and K 1,i converge to K 0,p and K 1,p . By the policy improvement step (8), K 0,p and K 1,p satisfy</p><p>Substituting ( <ref type="formula">18</ref>) into <ref type="bibr">(7)</ref> with i replaced by p, it is seen that P 0,p , P 1,p (&#952;) and P 2,p (&#958;, &#952;) solve the PDEs <ref type="bibr">(6)</ref>. Due to the uniqueness of the solution to (6), P 0,i , P 1,i (&#952;) and P 2,i (&#958;, &#952;) pointwisely converge to P * 0 , P * 1 (&#952;) and P * 2 (&#958;, &#952;). Since both P 1,i (&#952;) and P 2,i (&#958;, &#952;) are continuously differentiable, {P 1,i (&#952;) : i &#8712; N + } and {P 2,i (&#958;, &#952;) : i &#8712; N + } are equicontinuous, which leads to the uniform convergence by <ref type="bibr">[43,</ref><ref type="bibr">Chapter 4,</ref><ref type="bibr">Theorem 16]</ref>. Hence, 3) is proved.</p><p>Notice that although <ref type="bibr">(7)</ref> is linear with respect to P 0,i , P 1,i , and P 2,i , since <ref type="bibr">(7)</ref> are PDEs, obtaining the analytical solution to ( <ref type="formula">7</ref>) is still non-trivial. Besides, the accurate knowledge of the system matrices A, A d , and B is required to implement the model-based PI, and in practice due to the complex structure of the system, it is often hard to derive such an accurate model. Therefore, in the next section, a data-driven PI algorithm is proposed to approximate the optimal solution. Remark 2. When A d = 0, (1) is degraded to the normal delay-free systems. According to <ref type="bibr">(7)</ref> and <ref type="bibr">(8)</ref>, we can see that P 1,i (&#952;) = 0, P 2,i (&#958;, &#952;) = 0, and K 1,i (&#952;) = 0. As a consequence, <ref type="bibr">(7)</ref> and <ref type="bibr">(8)</ref> are the same as the model-based PI method in <ref type="bibr">[35]</ref>. Therefore, the proposed model-based PI algorithm is a generalization of celebrated Kleinman's PI to linear time-delay systems. Remark 3. In <ref type="bibr">[18]</ref>, the model-based PI is developed for infinite-dimensional linear systems in the Hilbert space. Although system (1) is one of the infinite-dimensional systems, the concrete expression of PI for linear time-delay systems is not given in <ref type="bibr">[18]</ref>, and as a consequence, the PI developed in <ref type="bibr">[18]</ref> cannot be directly applied to solve the PDEs <ref type="bibr">(6)</ref>. In this paper, the concrete expression of PI is constructed in <ref type="bibr">(7)</ref> and <ref type="bibr">(8)</ref>, which is one of the major contributions in this paper. Besides, it can be checked that at each iteration, P i defined in <ref type="bibr">(16)</ref> satisfies the PI update equations in <ref type="bibr">[18]</ref>, which is another way to prove the validity of the proposed PI theoretically. Remark 4. As shown in <ref type="bibr">[18]</ref>, the convergence rate of PI algorithm in the Hilbert space is quadratic, and therefore, the proposed model-based PI for system (1) has the same quadratic convergence rate.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. DATA-DRIVEN POLICY ITERATION</head><p>The purpose of this section is to propose a corresponding data-driven PI algorithm that does not require the accurate knowledge of system (1) to solve Problem 1. The input-state trajectories of system (1) is required for the data-driven PI. In other words, the continuous-time trajectories of x(t) and u(t) sampled from system (1) within the interval [t 1 , t L+1 ] is applied to train the control policy. From the RL perspective, u is named behaviour/exploratory policy.</p><p>Define v i (t) = u(t)u i (x t ), where u i (x t ) is the value of the control policy u i calculated along the sampled trajectory. By <ref type="bibr">(10)</ref>, along the trajectories of system (1) driven by the behaviour/exploratory policy u, </p><p>Plugging the expressions of u i+1 in ( <ref type="formula">8</ref>) and V i in ( <ref type="formula">9</ref>) into (20) yields</p><p>As seen in ( <ref type="formula">7</ref>) and (8), K 1,i (&#952;) and P 1,i (&#952;) (P 2,i (&#958;, &#952;)) are continuous functions defined over the set [-&#964;, 0] ([-&#964;, 0] 2 ). Next, we use the linear combinations of basis functions to approximate these continuous functions, such that only the weighting matrices of the basis functions should be determined for the function approximation. Let &#934;(&#952;), &#923;(&#958;, &#952;), and &#936;(&#958;, &#952;) denote the N -dimensional vectors of linearly independent basis functions. To simplify the notation, we choose the same number of basis functions for &#934;, &#923; and &#936;. According to the approximation theory <ref type="bibr">[44]</ref>, the following equations hold</p><p>), and e N K,i (&#952;) &#8712; C 0 ([-&#964;, 0], R mn ) are approximation truncation errors. Therefore, by the uniform approximation theory, as N &#8594; &#8734;, the truncation errors converge uniformly to zero, i.e. for any &#951; &gt; 0, there exists</p><p>Therefore, the key idea of the data-driven PI is that W j,i (j = 0, &#8226; &#8226; &#8226; , 3) and U j,i (j = 0, 1) are directly approximated by the data collected from system <ref type="bibr">(1)</ref>. Define &#933; N i as the composite vector of the weighting matrices, i.e.</p><p>Let &#933;N i be the approximation of &#933; N i , and then, the approximations of P j,i (j = 0, 1, 2) can be reconstructed by</p><p>where</p><p>Furthermore, K0,i+1 and K1,i+1 (&#952;), the approximations of K 0,i+1 and K 1,i+1 (&#952;) respectively, can be reconstructed by</p><p>where n 6 = n 5 +nm, and n 7 = n 6 +nmN . As a consequence, &#251;i (x t ), the approximation of u i (x t ), can be expressed as &#251;i</p><p>Based on the approximations in ( <ref type="formula">22</ref>), we will transfer <ref type="bibr">(21)</ref> to a linear equation with respect to &#933;N i . Then, the unknown vector &#933; N i will be approximated by linear regression, and consequently, P j,i (j = 0, 1, 2) and K j,i+1 (j = 1, 2) can be approximated by ( <ref type="formula">25</ref>) and <ref type="bibr">(26)</ref>. In detail, let vi = u&#251;i , &#361;i = &#251;iu i . Define the data-constructed matrices</p><p>With the help of ( <ref type="formula">22</ref>) and ( <ref type="formula">27</ref>), each term in ( <ref type="formula">21</ref>) is expressed linearly with respect to the weighting matrices</p><p>where 1,i (t) 2,i (t), 3,i (t), and &#968; i,k are induced by the approximation truncation errors in <ref type="bibr">(23)</ref>, and &#961; 0 i,k and &#961; 1 i,k are induced by &#361;i (their expressions are in <ref type="bibr">[41,</ref><ref type="bibr">Equation (38)</ref>]).</p><p>With the collected input-state trajectories, define</p><p>where <ref type="formula">28</ref>) and the definitions of M i,k , Y i,k and E i,k in ( <ref type="formula">29</ref>), ( <ref type="formula">21</ref>) is finally transferred to a linear equation</p><p>Combining <ref type="bibr">(30)</ref> </p><p>Let &#202;i be the linear regression error defined as</p><p>Assumption 2. Given N &#8712; N + , there exist L * &#8712; N + and &#945; &gt; 0, such that for all L &gt; L * and i &#8712; N + ,</p><p>Remark 5. Assumption 2 is reminiscent of the persistent excitation (PE) condition <ref type="bibr">[45]</ref>, <ref type="bibr">[46]</ref>. It is needed to guarantee the uniqueness of the least-square solution to <ref type="bibr">(31)</ref>, and prove the convergence of the proposed data-driven PI algorithm. As in the literature of ADP-based data-driven control <ref type="bibr">[19]</ref>, <ref type="bibr">[20]</ref>, one can fulfill it by means of added exploration noise, such as sinusoidal signals and random noise.</p><p>Under Assumption 2, the method of least squares is applied to minimize &#202; i &#202;i , i.e. &#202; i &#202;i is minimized by</p><p>With the result of &#933;N i in <ref type="bibr">(34)</ref>, Pj,i (j = 0 &#8226; &#8226; &#8226; 2) and Kj,i (j = 0, 1) can be reconstructed by ( <ref type="formula">25</ref>) and ( <ref type="formula">26</ref>) respectively.</p><p>The proposed algorithm is shown in Algorithm 1. From (29), M i and Y i are constructed by the input-state trajectory data of system (1). Hence, the system matrices are not involved in the computation of &#933;N i . Furthermore, since the behaviour/exploratory policy u is different from the updated policy u i , Algorithm 1 is called off-policy. Remark 6. Due to the property that P 2,i (&#958;, &#952;) = P 2,i (&#952;, &#958;), the diagonal elements of P 2,i satisfy diag(P 2,i (&#958;, &#952;)) = diag(P 2,i (&#952;, &#958;)). Hence, the vector of basis functions &#936; should satisfy &#936;(&#958;, &#952;) = &#936;(&#952;, &#958;) to approximate such functions.</p><p>Remark 7. In practice, the integrals in <ref type="bibr">(27)</ref> are calculated by Riemann sum, like midpoint, trapezoid, and Simpson's rules. Lemma 3. Under Assumption 2, and given an admissible controller u 1 (x t ) = -K 0,1 x(t) -0 -&#964; K 1,1 (&#952;)x t (&#952;)d&#952;, for each i &#8712; N + and any &#951; &gt; 0, there exists a positive integer</p><p>Proof. Define the approximation error as &#933;N i = &#933; N i -&#933;N i . Subtracting <ref type="bibr">(32)</ref> from <ref type="bibr">(31)</ref> yields</p><p>Since &#202; i &#202;i is minimized by the method of least squares,</p><p>Furthermore, combining ( <ref type="formula">36</ref>) and ( <ref type="formula">37</ref>), we have</p><p>Therefore, via Assumption 2, the following inequality holds</p><p>Then, the lemma is proved by induction. When i = 1, &#251;1 = u 1 , so &#361;1 = 0, and &#961; 0 1,k = &#961; 1 1,k = &#961; 2 1,k = 0. Furthermore, since 1,i (t) 2,i (t), 3,i (t), and &#968; i,k are induced by the approximation truncation errors in <ref type="bibr">(22)</ref>, they converge to zero as N &#8594; &#8734;. Therefore, by the expression of E i,k in (29), for any 1 &#8804; k &#8804; L, E i,k converges to zero as N &#8594; &#8734;. Consequently, by <ref type="bibr">(39)</ref>, for i = 1, lim</p><p>As a result, the estimation of the weighting matrices in <ref type="bibr">(22)</ref> converge to the true values as N &#8594; &#8734;. By the boundedness of the functions &#934;(&#952;), &#936;(&#958;, &#952;), &#923;(&#958;, &#952;) on the compact interval &#952;, &#958; &#8712; [-&#964;, 0] and the uniform convergence of the approximation truncation errors in <ref type="bibr">(23)</ref>, <ref type="bibr">(35)</ref> holds for i = 1. Suppose <ref type="bibr">(35)</ref> holds for some i -1 &gt; 1. Then, from the second line of <ref type="bibr">(35)</ref>, it is seen that &#361;i converges to zero as N &#8594; &#8734;. Since &#961; 0 i,k , &#961; 1 i,k , and &#961; 2 i,k are induced by &#361;i , they converge to zero as N &#8594; &#8734;. Furthermore, since 1,i (t) 2,i (t), 3,i (t), and &#968; i,k are induced by the approximation truncation errors in <ref type="bibr">(22)</ref>, they converge to zero as N &#8594; &#8734;. Consequently, by the expression of E i,k in (29), for any 1 &#8804; k &#8804; L, E i,k converges to zero as N &#8594; &#8734;. Therefore, by <ref type="bibr">(39)</ref>, <ref type="bibr">(40)</ref> holds for i. Following the logic of the content below <ref type="bibr">(40)</ref>, we obtain that <ref type="bibr">(35)</ref> holds for i. The proof is completed by induction.</p><p>Theorem 2. Given an admissible controller u 1 , for any &#951; &gt; 0, there exist integers i * &gt; 0 and</p><p>Proof. The theorem is proven by Theorem 1, Lemma 3, and triangle inequality. See <ref type="bibr">[41,</ref><ref type="bibr">Theorem 2]</ref> for details.</p><p>By Theorem 2, we see that Kj,i+1 (j = 0, 1) obtained by Algorithm 1 converges to K * j (j = 0, 1) as the iteration step of the algorithm and the number of basis functions tend to infinity. Hence, the proposed data-driven PI solves Problem 1.</p><p>Algorithm 1 Data-driven Policy Iteration Calculate &#251;i (t) = &#251;i (x t ) along the trajectory of x.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>6:</head><p>Construct M i and Y i by <ref type="bibr">(29)</ref>. Collect more data and insert it into M i and Y i . Get &#933;N i by solving <ref type="bibr">(34)</ref>.</p><p>11:</p><p>Get K0,i+1 and K1,i+1 by <ref type="bibr">(26)</ref>.</p><p>12:</p><p>Use &#251;i (x t ) as the control input.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. PRACTICAL APPLICATIONS</head><p>The proposed data-driven PI algorithm is demonstrated by two practical examples, with regards to regenerative chatter in metal cutting (RCMC) and connected and autonomous vehicles (CAVs) in mixed traffic consisting of autonomous vehicles (AVs) and human-driven vehicles (HDVs).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Regenerative Chatter in Metal Cutting</head><p>Consider the example of metal cutting [37, Example 1.1], <ref type="bibr">[47]</ref>. The thrust force is proportional to the instantaneous chip thickness ([x(t)] 1 -[x(t&#964; )] 1 ), leading to the timedelay effect. The model is described by <ref type="bibr">(1)</ref> with</p><p>and &#964; = 1.3s. The initial admissible controller is &#251;1 (x t ) = -K 0,1 x(t), with K 0,1 = [1.74, 3.92]. The exploration noise is e(t) = 20 50 i=1 sin &#969; i t, where &#969; i is randomly sampled from an independent uniform distribution over <ref type="bibr">[-10, 10]</ref>. Q = diag([100, 100]) and R = 1. &#948; = 10 -3 . For the basis functions, &#934;</p><p>As shown in Fig. <ref type="figure">1</ref>, the weights of the basis functions &#933; converge after the eighth iteration. In order to inspect the evolution of the performance index, we compare the controllers updated at each iteration for the same initial state x 0 . In Fig. <ref type="figure">1</ref>, it is seen that the performance index decreases. The responses of the state with the initial controller and the learned ADP controller are compared in Fig. <ref type="figure">2</ref>. The performance indices are J(x 0 , &#251;1 ) = 5.89 &#215; 10 4 and J(x 0 , &#251;8 ) = 3.03 &#215; 10 4 .</p><p>Semi-discretization <ref type="bibr">[48]</ref> is applied to discretize (1) into a delay-free system with sampling period &#916;t = 0.1s. Then, Algorithm 1 is compared with the model-based discrete-time linear quadratic regulator (DLQR) and the discrete-time ADP algorithm in <ref type="bibr">[9]</ref> (with the same length of trajectory data). For the same initial state, the performance indices are shown in Table <ref type="table">I</ref>. The performance index is minimal under Algorithm 1, showing that discretization sacrifices the system performance.  Ideally, the performance of the discrete-time ADP is similar as the model-based DLQR. The large deviation between them is induced by the fact that the PE condition for the discretetime ADP is not satisfied. This further illustrates that by semi-discretization, the dramatically increased dimension of the augmented state (26-dimensional) makes the requirements on the sampled data more demanding.</p><p>The robustness of Algorithm 1 to measurement noise is evaluated. The measurement of x(t) is disturbed by an independent Gaussian noise &#981;(t) &#8764; N (0, 0.2). The result is shown in Fig. <ref type="figure">3</ref>. Using the noisy data, for the same initial state x 0 , the performance index converges to J = 3.35 &#215; 10 4 . Comparing Fig. <ref type="figure">3</ref> with the second figure in Fig. <ref type="figure">1</ref>, we see that Algorithm 1 can still find a near-optimal solution in the presence of noise.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. CAVs in Mixed Traffic</head><p>Consider the platoon in Fig. <ref type="figure">4</ref>, where the human reaction time results in the time delay. The system can be described as system <ref type="bibr">(1)</ref>    </p></div></body>
		</text>
</TEI>
