Output-feedback online optimal control for a class of nonlinear systems
Ryan Self, Michael Harlan, Rushikesh Kamalapurkar

TL;DR
This paper introduces an output-feedback reinforcement learning method for controlling a specific class of nonlinear systems, combining model knowledge with dynamic state estimation to improve control performance.
Contribution
It presents a novel output-feedback MBRL approach that integrates a dynamic state estimator with exact model knowledge for second-order nonlinear systems.
Findings
Simulation results confirm the effectiveness of the proposed method.
The approach successfully stabilizes the nonlinear systems under study.
Abstract
In this paper an output-feedback model-based reinforcement learning (MBRL) method for a class of second-order nonlinear systems is developed. The control technique uses exact model knowledge and integrates a dynamic state estimator within the model-based reinforcement learning framework to achieve output-feedback MBRL. Simulation results demonstrate the efficacy of the developed method.
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.
Output-feedback online optimal control for a class of nonlinear systems
Ryan Self, Michael Harlan, and Rushikesh Kamalapurkar The authors are with the School of Mechanical and Aerospace Engineering, Oklahoma State University, Stillwater, OK, USA. {rself, michael.c.harlan, rushikesh.kamalapurkar}@okstate.edu.
Abstract
In this paper an output-feedback model-based reinforcement learning (MBRL) method for a class of second-order nonlinear systems is developed. The control technique uses exact model knowledge and integrates a dynamic state estimator within the model-based reinforcement learning framework to achieve output-feedback MBRL. Simulation results demonstrate the efficacy of the developed method.
I Introduction
Over the past decade, online reinforcement learning algorithms that guarantee stability during the learning phase have been developed for deterministic systems [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; however, stability and convergence are established under restrictive persistence of excitation (PE) conditions which are difficult, if not impossible, to verify. To soften the PE condition, data-driven methods that employ experience replay have been utilized in results such as [16, 17, 18, 19, 20, 21, 13]; however, since the data is collected along the system trajectory, added exploration signals are often required to achieve convergence. The need for PE and exploration signals is a result of sample inefficiency, and is a significant drawback of the existing model-free RL-based online optimal control methods.
Model-based reinforcement learning (MBRL) algorithms learn a model of the system from observations using supervised learning and employ the model to learn the policies. Several different MBRL approaches have been developed in the literature over the last few decades. Imaginary roll-outs, i.e., the use of a model as a proxy for the real world to evaluate temporal difference errors (referred to as Bellman errors (BEs) in this paper) are explored in results such as [22] and [23]. While the sample efficiency is of the policy learning algorithms is improved, the performance of the method in [22] decays rapidly with model mismatch, and the method in [23] relies on fitting neural networks to dynamics, which is typically data-intensive, nullifying the sample efficiency gain in the policy learning algorithm.
Policy gradient methods that rely on backpropagation through the model to compute the gradient of the state or the action value function with respect to the policy parameters are developed in results such as [24, 25, 26, 27]; however, policy gradient methods are often iterative in nature and typically do not study stability during the learning phase, and as a result, are not suitable for real-time simultaneous learning and execution. MBRL methods with provable sample efficiency bounds have been developed in results such as [28, 29, 30, 31, 32, 33, 34]; however, the theoretical guarantees are obtained under discretization of the continuous state space into finitely many discrete states and a finite action space, and as such, are not directly applicable to systems with continuous state and action spaces.
The MBRL technique developed by the authors in [35, 36, 37, 38, 39, 40] for continuous time and continuous space systems softens the excitation requirements used in results such as [1, 2, 41, 42, 3, 4, 5, 43, 44, 6, 7, 8, 9, 10, 11, 12, 45, 13, 14, 15] by utilizing a model of the system to simulate exploration, where the stability and the performance of the closed-loop system critically depends on the accuracy of the estimated model. A significant drawback of the online optimal control methods mentioned so far is that they require full state measurements.
While model-based and model-free reinforcement learning can be achieved using output feedback instead of state feedback by making use of partially observable Markov decision processes (POMDPs), in general, POMDPs are undecidable if the objective is to find an optimal solution, and finding a near-optimal solution can also be NP-hard [46, 47]. In this paper, the problem is formulated as a state estimation based reinforcement learning problem, and for a specific class of systems, an online solution is obtained that guarantees stability during the learning phase.
A recent result in [48], presents an offline model-free algorithm for linear systems to achieve optimality using output feedback. The objective in this paper is to develop an output-feedback model-based reinforcement learning method for a class of nonlinear systems under exact model knowledge. While the developed results can be extended to systems with uncertain models using model-learning methods such as [49], such extension is not a focus of this work.
The paper is organized as follows. A detailed description of the problem under consideration is provided in Section I. To facilitate the subsequent analysis of the developed technique, section III examines the stability properties of optimal controllers under semidefinite cost functions for the class of systems under consideration. Section IV describes the state estimator used in the design. Section V describes the developed MBRL method. Section VI presents a Lyapunov-based stability analysis, Section VII presents simulation results, and Section VIII concludes the paper.
II Problem Description
Consider a second order nonlinear system of the form
[TABLE]
where and denote the generalized position states and the generalized velocity states, respectively, is the system state, is locally Lipschitz continuous, , and denotes the output. The drift dynamics are unknown and the control effectiveness is known and locally Lipschitz. Systems of the form (1) encompass second-order linear systems and Euler-Lagrange models with known inertial matrices, and hence, represent a wide class of physical plants, including, but not limited to, robotic manipulators and autonomous ground, aerial, and underwater vehicles.
The objective is to design an adaptive estimator to estimate the state , online, using input-output measurements and to simultaneously estimate and utilize the optimal feedback controller that minimizes the cost functional
[TABLE]
while maintaining system stability during the learning phase. The function is defined as , where is continuous, is a constant positive definite matrix, and is the discount factor.
Assumption 1**.**
One of the following is true:
- (a)
is positive definite. 2. (b)
is positive semidefinite and is positive definite for all nonzero . 3. (c)
is positive semidefinite, is positive definite for all nonzero and whenever .
To facilitate control design, the stability properties of the closed-loop system under optimal feedback are examined.
III Stability Under Optimal state Feedback
The following theorem establishes global asymptotic stability of the closed-loop system under optimal state feedback.
Theorem 1**.**
If the optimal state feedback controller that minimizes the cost function in (2) exists and if the corresponding optimal value function is continuously differentiable and radially unbounded, then the origin of closed-loop system
[TABLE]
is globally asymptotically stable.
Proof.
Under the hypothesis of Theorem 1, the optimal value function is the unique solution of the Hamilton-Jacobi-Bellman equation [50, pp. 164]
[TABLE]
with
[TABLE]
where the notation denotes the partial derivative of with respect to . The function is positive semidefinite by definition. Since the solutions of (3) are continuous, if for some , it can be concluded that , and , where denotes the trajectory of (1), evaluated at time , starting from the state and under the controller . If Assumption 1-(a) holds then , which contradicts . If Assumption 1-(b) holds, then . As a result, , which contradicts . If Assumption 1-(c) holds, then . As a result, for some constant . Since if , it can be concluded that , which contradicts . Hence, cannot be zero for a nonzero . Furthermore, since , the zero controller is clearly the optimal controller starting from . That is, , and as a result, is positive definite.
Using as a candidate Lyapunov function and using the HJB equation in (4), it can be concluded that
[TABLE]
If Assumption 1-(a) holds, then the proof is complete using Lyapunov’s direct method. If Assumption 1-(b) holds, then using the fact that if the output is identically zero then so is the state, the invariance principle [51, Corollary 4.2] can be invoked to complete the proof. If Assumption 1-(c) holds, then finiteness of the value function everywhere implies that the origin is the only equilibrium point of the closed-loop system. As a result, the invariance principle can be invoked to complete the proof. ∎
Using Theorem 1 and the converse Lyapunov theorem for asymptotic stability [51, Theorem 4.17], the existence of a radially unbounded positive definite function and a positive definite function is guaranteed such that
[TABLE]
. The functions and are utilized to analyze the stability of the output feedback approximate optimal controller.
IV Velocity Estimator Design
To generate estimates of the generalized velocity, a velocity estimator inspired by [52] is developed. The estimator is given by
[TABLE]
where , , and are estimates of , , and , respectively, and is a feedback term designed in the following.
To facilitate the design of , let , , and let
[TABLE]
where the signal is added to compensate for the fact that the generalized velocity state, , is not measurable. Based on the subsequent stability analysis, the signal is designed as the output of the dynamic filter
[TABLE]
where and are positive constants and the feedback component is designed as
[TABLE]
The design of the signals and to estimate the state from output measurements is inspired by the filter [53]. Using the fact that , the signal can be implemented via the integral form
[TABLE]
V Model-based Reinforcement Learning
To estimate the optimal state feedback policy, the optimal value function, defined as
[TABLE]
The optimal value function and the optimal policy are approximated using parametric approximators and defined as
[TABLE]
where , for all is the vector of basis functions and and are estimates of the ideal parameters . The corresponding approximation error is defined as . Provided the basis functions are selected from an appropriate class of functions, for any given compact ball , and any given there exists , a set of basis functions , and such that and , where denotes (see [54, 55, 56]).
Substituting the estimates , , and in (4), the Bellman error is obtained as
[TABLE]
Similar to [36], the technique developed in this result implements simulation of experience in a model-based RL scheme by using the system model to extrapolate the approximate BE to unexplored areas of the state space. In the following, the trajectories of the state and the weight estimates and , evaluated at time starting from appropriate initial conditions are denoted by , and , respectively. The notation111For the notation denotes the interval and the notation denotes the interval . denotes the BE in (14), evaluated along the trajectories of the state and the weight estimates as and denotes BE extrapolated along the trajectories of the weight estimates and a predefined set of trajectories as . A least-squares update law for the value function weights is designed based on the subsequent stability analysis as
[TABLE]
where is a time-varying least-squares gain matrix, , where is a constant positive normalization gain, is a constant forgetting factor, and is a constant adaptation gain.
The policy weights are updated to follow the value function weights as
[TABLE]
where are positive constant adaptation gains, , and . The following rank condition facilitates the subsequent analysis.
Assumption 2**.**
There exists a finite set of trajectories and a constant such that
[TABLE]
where, at least one of the nonnegative constants and is strictly positive.
The rank conditions in (18) and (19) depend on the estimates ; hence, in general, they are impossible to guarantee a priori. However, unlike traditional adaptive dynamic programming literature that assumes that a regressor similar to evaluated along the system trajectories is PE, Assumption 2 only requires the regressor to be persistently exciting. When the regressor is evaluated along the system state excitation in the regressor vanishes as the system states converge. Hence, in general, it is unlikely that a regressor evaluated along the system trajectories will be PE. However, the regressor depends on , which can be designed independent of the system state . Hence, can be made strictly positive if the signal contains enough frequencies, and can be made strictly positive by selecting a sufficient number of extrapolation trajectories, i.e., . It is established in [38, Lemma 1] that under Assumption 2 and provided , the update law in (16) ensures that the least squares gain matrix satisfies
[TABLE]
and for some .
VI Analysis
The approximate BE, evaluated along the selected trajectories , can be expressed as
[TABLE]
where , , , is a constant, , and was introduced in (17). Using (21), the time-derivative of the Lyapunov function introduced in (6) along the trajectories of (1) under the controller is given by
[TABLE]
Adding and subtracting ,
[TABLE]
Using (6), the fact that is bounded, the basis functions are bounded, and that the value function approximation error and its derivative with respect to are bounded on compact sets, the time-derivative can be bounded as
[TABLE]
for all and for all and , where is a compact set, are positive constants, and .
Let The time-derivative of along the trajectories of (15)-(17) is given by
[TABLE]
Using (14),
[TABLE]
for all and for all , where are positive constants that are independent of the learning gains, denotes an upper bound on the norm of the ideal weights , and . Assumption 2 and (20) guarantee that .
Let . The time-derivative of along the trajectories of (1) and (7)-(10) is given by
[TABLE]
where and . The time derivative of can be bounded above as
[TABLE]
for all and for all , where are positive constants that are independent of the learning gains.
The candidate Lyapunov function for the overall system is then defined as , where . The time derivative of the candidate Lyapunov function can be bounded as
[TABLE]
where ,
[TABLE]
[TABLE]
Provided the matrix is positive definite,
[TABLE]
where . Letting and letting be defined as , the bound
[TABLE]
for all .
Using the bound in (20) and the fact that the converse Lyapunov function is guaranteed to be time-independent, radially unbounded, and positive definite, Lemma 4.3 can be invoked to conclude that
[TABLE]
for all and for all , where are class functions.
Provided the learning gains, the domain radius , and the basis functions for function approximation are selected such that is positive definite and , Theorem 4.18 in [51] can be invoked to conclude that Z is uniformly ultimately bounded. Since the estimates approximate the ideal weights , the policy approximates the optimal policy .
VII Simulation Results
The performance of the developed controller is demonstrated by simulating a nonlinear, control affine system with a two dimensional state . The system dynamics are described by (1) where
[TABLE]
The origin is an unstable equilibrium point of the unforced system . The control objective is to minimize the cost in (2), where and . For comparison purposes, the optimal value function for this problem is computed using the converse method in [57] as .
The basis function for value function approximation is selected as . Based on the analytical solution, the ideal weights are . The data points for the simulation of experience in the update law (15) are selected to be on a grid around the origin. The learning gains are selected as , , , , and . The gains for the state estimator are selected as , , and . The initial conditions are selected as , , , and .
Figs. 1-5 demonstrates that the system state is regulated to the origin, the generalized velocities are identified, and the actor and the critic weights converge to their true values. Furthermore, unlike previous results, a probing signal to ensure persistence of excitation is not required.
VIII Conclusion
An output-feedback MBRL method is developed for a class of second-order nonlinear systems. The control technique uses exact model knowledge and integrates a dynamic state estimator within the model-based reinforcement learning framework to achieve output-feedback MBRL. Simulation results demonstrate the efficacy of the developed method. Integration of simultaneous state and parameter estimation methods such as [49] with the MBRL method to achieve output-feedback MBRL using uncertain models is a topic for future research.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Z. Chen and S. Jagannathan, “Generalized Hamilton-Jacobi-Bellman formulation -based neural network control of affine nonlinear discrete-time systems,” IEEE Trans. Neural Netw. , vol. 19, no. 1, pp. 90–106, Jan. 2008.
- 2[2] P. Mehta and S. Meyn, “Q-learning and pontryagin’s minimum principle,” in Proc. IEEE Conf. Decis. Control , Dec. 2009, pp. 3598–3605.
- 3[3] D. Vrabie and F. L. Lewis, “Integral reinforcement learning for online computation of feedback nash strategies of nonzero-sum differential games,” in Proc. IEEE Conf. Decis. Control , 2010, pp. 3066–3071.
- 4[4] K. G. Vamvoudakis and F. L. Lewis, “Online actor-critic algorithm to solve the continuous-time infinite horizon optimal control problem,” Automatica , vol. 46, no. 5, pp. 878–888, 2010.
- 5[5] F. L. Lewis, D. Vrabie, and V. L. Syrmos, Optimal control , 3rd ed. Hoboken, NJ: Wiley, 2012.
- 6[6] J. Y. Lee, J. B. Park, and Y. H. Choi, “Integral Q-learning and explorized policy iteration for adaptive optimal control of continuous-time linear systems,” Automatica , vol. 48, no. 11, pp. 2850–2859, Nov. 2012.
- 7[7] H. Modares, F. L. Lewis, and M.-B. Naghibi-Sistani, “Adaptive optimal control of unknown constrained-input systems using policy iteration and neural networks,” IEEE Trans. Neural Netw. Learn. Syst. , vol. 24, no. 10, pp. 1513–1525, 2013.
- 8[8] S. Bhasin, R. Kamalapurkar, M. Johnson, K. G. Vamvoudakis, F. L. Lewis, and W. E. Dixon, “A novel actor-critic-identifier architecture for approximate optimal control of uncertain nonlinear systems,” Automatica , vol. 49, no. 1, pp. 89–92, Jan. 2013. http://www.sciencedirect.com/science/article/pii/S 0005109812004827
