Abstract
This paper presents modeling and infinite-time suboptimal control of a quadcopter device using the state-dependent Riccati equation (SDRE) method. It establishes a solution to the control problem using SDRE and proposes a new procedure for solving the problem. As a new contribution, the paper proposes a modified SDRE-based suboptimal control technique for affine nonlinear systems. The method uses a pseudolinearization of the closed-loop system employing Moore–Penrose pseudoinverse. Then, the algebraic Riccati equation (ARE), related to the feedback compensator gain, is reduced to state-independent form, and the solution can be computed only once in the whole control process. The ARE equation is applied to the problem reported in this study that provides general formulation and stability analysis. The effectiveness of the proposed control technique is demonstrated through the use of simulation results for a quadrotor device.
1. Introduction
The state-dependent Riccati equation (SDRE) method has become more popular due to the possibility of designing more effective nonlinear controllers and providing flexibility through state-dependent weighting matrices, which is well presented in [1]. This method scheme originates from the LQR method [2,3] and is also similar to the MPC (or its nonlinear version, NMPC) [4,5,6]. The main differences between SDRE and those two methods are, for example, unlike the LQR method, the SDRE sets up its control laws at every time-step. The MPC method requires a convex optimization technique, while SDRE and LQR methods utilize optimal control laws for linear systems [7,8].
The SDRE control method reformulates the nonlinear dynamics using parameterization to a linear structure with state-dependent coefficient (SDC) matrices, which are essential to solve an algebraic Riccati equation (ARE) and obtain the suboptimal control law. The coefficients of the ARE equation differ in the state space. Thus, at a given point in state space, it is essential to solve an algebraic state-dependent Riccati equation. The nonuniqueness of the state-dependent parameterization (SDP) allows us to obtain extra degrees of freedom, which may help to enhance controller performance. Minimization of the nonlinear performance index gives a quadratic-like structure [9,10,11,12].
In the last decade, this method has been used in many different areas of research, for example, satellite and spacecraft control and estimation [13,14], control of servopneumatic drives [15], control of quadrotor aircraft [16,17,18,19,20], robotics [21,22], control of non-affine systems [23], and even in medical sciences for cancer treatment allowing optimization of drug dosing control [24].
The main disadvantage of this classic SDRE strategy is that Riccati equations are state dependent. Therefore, it is necessary to solve SDRE multiple times during the control process [25,26]. Nowadays, the solution can be successfully implemented in real control systems due to developments of digital controllers. However, the solution can be found faster, reducing computational effort and introducing linearization of closed-loop form. As a new contribution, the paper presents a possible solution for suboptimal control of nonlinear systems by solving the algebraic Riccati equation only once in the whole control process. Using linearization of the closed-loop system and introducing Moore–Penrose inversion [27], it is possible to modify SDRE into ARE. For the modified SDRE method, it is possible to obtain the same solution as for classic SDRE method. The advantage of the modified case is that there is no need to solve the state-dependent Riccati equation for each state of the control process. This allows us to save space for implementation in real-time control systems and simplifies computations. The specific differences between classical and modified methods are presented in the sections below.
2. SDRE Method
Let Equation (1) be the continuous time nonlinear system
where and are the state and input vectors, respectively. is a continuous ( class) nonlinear function of , and is the constant control matrix. The problem consists of finding an admissible control for , which minimizes the performance index [28,29,30,31]
where is a symmetric positive semidefinite, and is a symmetric positive-definite matrix. Rewriting the nonlinear Equation (1), the state-dependent coefficient form (SDC) follows
where .
There are many methods for SDC parameterization. Each parameterization should be true for all [32]
The control problem for the nonlinear continuous-time system Equation (1) can be formulated as follows. Given nonlinear functions and , we attempt to find a control vector for that allows us to control the system state vector from to while the performance index is minimized (Equation (19)).
If the integral functions and are continuously differentiable functions of each of their arguments, then we may imply that is a control that minimizes the functional . To solve the problem, consider the Hamiltonian
where is the co-state vector.
To be consistent with the Pontryagin minimum principle, if is a control for the functional Equation (19), subject to state Equation (3), and if denotes the corresponding state, then there exists a such that
and
Equations (6) and (7) are conditions allowing us to obtain suboptimal control while minimizing Equation (19).
It follows that any optimal input and the corresponding state satisfies Equation (6); that is,
From Equation (8), the optimal control vector is
and subsequently, the adjoint differential equation is
for , and , where
Let be a nonlinear combination of the state of the system
where denotes feedback compensator gain, and let be the solution of the nonlinear state equation
for . Then, feedback control is
Let solve the state-dependent Riccati equation (SDRE), which is
then the equation below satisfies the optimality condition [25,32]
The suboptimal control
for performance index (objective function) Equation (19) subject to dynamics Equation (1) can be found solving the state-dependent Riccati Equation (15). Often, it is difficult to find the solution of Equation (15) analytically. One approach allows us to solve the SDRE via symbolic software packages such as Matlab. However, for complex systems, the solution may become complicated, and then, it is necessary to approximate the solution. To approximate, an interpolation method or Taylor series method can be used, for instance, ref. [25].
3. Modified SDRE Method
Let Equation (18) be the continuous time nonlinear system
where and are the state and input vectors. is a continuous ( class) nonlinear function of , and is the constant control matrix. The problem consists of finding an admissible control for that minimizes the performance index [28,29,30,31]
where is a symmetric positive semidefinite, and is a symmetric positive-definite matrix.
The first modification (compared to the classic approach) is to rewrite the system Equation (18) as a sum of state-independent and nonlinear state-dependent coefficient (SDC) forms Equation [25]:
where
is a sum of a constant matrix and a state-dependent matrix [12,33].
The SDC parameterization of Equation (20) can be performed the same way as for Equation (4), for all [32]:
To easily formulate controllability criteria, the state-dependent controllability matrix is introduced [25]
If (state-dependent) has the full rank, then the system is controllable for all [34]. As in the previous case of the SDRE method, an admissible control , that minimizes the performance index can be found for [28,29,30,31]
where is a symmetric positive semi- definite matrix, and is a symmetric positive definite matrix. The control problem for the nonlinear continuous-time system Equation (18) can be formulated as follows. Given nonlinear functions and , we attempt to find a control vector for that controls the system state vector from to while minimizing the performance index (Equation (19)).
If the integrand of the cost functions and are continuously differentiable functions of each of their arguments, then we may imply that is a control that minimizes the functional . Note that, in this approach, two feedback compensators are defined . To solve the problem, consider the Hamiltonian
where is the co-state vector.
If is a control that minimizes Equation (19) subject to the state Equation (20), and if denotes the corresponding state, then there exists a such that
and
where satisfies the condition for optimal control that minimizes Equation (19).
It follows that any optimal input and the corresponding state satisfy Equation (26); that is,
Thus, the optimal control is
and subsequently, the adjoint differential equation is
for , and , where
Consider as a linear and nonlinear combination of the state of the system Equation (18), which is the second modification of the classic approach
where .
Consider as the solution of the nonlinear state equation
for , and .
Note that, in this approach, two feedback compensators are defined.
Rearranging Equation (33), it is possible to obtain
The first bracket of Equation (34) is state-independent, and the second one is state-dependent; thus, it is possible to linearize it and solve the state-dependent gain matrix- from:
as follows:
Matrix is singular; thus, the state-dependent matrix gain may be computed only by the pseudoinverse operation .
In order to perform this procedure, a Moore–Penrose pseudoinverse is used, and the matrix is unique [27,35,36].
Consequently, employing Equations (22) and (29), it is possible to obtain
and rearranging terms in Equation (39), we find
Based on linearization Equations (34)–(36), let the matrix solve Equation (39), the algebraic Riccati equation (ARE):
then, the optimality condition is given by
for obtained from (36). So, the suboptimal control
For index Equation (19), subject to Equation (18), it is possible to find the solution for the state-independent Riccati Equation (39). In general, it is difficult to find the solution of Equation (39) analytically, especially for complex systems [22,25,33,37]. Symbolic software packages (such Matlab or Mathematica) are commonly used to solve such problems. However, for complex systems, the solution may become complicated, and then, it is necessary to approximate the solution. To approximate, an interpolation method or Taylor series method seems to be most suitable [15].
4. Stability Analysis
Asymptotic stability of the closed-loop system ensures the possibility of controlling the states from the initial values to the final ones. The controlled system with the SDRE compensator-based feedback is locally asymptotically stable [25]. Let be the largest radius, such that . Assuming that the system is stabilizable at , it is possible to use optimal control theory to define matrix , such that all eigenvalues of have negative real parts. There exist , such that for all eigenvalues of , having the system
where and are continuous in for , where is the largest radius around the origin .
Evaluation of shows that it is an almost linear system:
from the inequality
Thus, when ; then, satisfies the condition Equation (46). The theoretical considerations of almost linear systems leads to the conclusion that, if eigenvalues have negative real parts, is continuous around the origin, and the condition of Equation (46) holds, then is asymptotically stable [38].
Let ; then, there exists a , such that whenever . Let ; assuming that f is continuous, the solution exists and remains in for , then
Considering the norm and the assumption , it is possible to obtain
There exists a positive constant G and , such that
and
Referring to the Gronwall inequality and after multiplication by , we obtain
for all , such that . is chosen from ; then, with respect to having , it is possible to obtain min. For all , it is possible to obtain for all , and is stable.
The condition of Equation (52) is satisfied for all if , is asymptotically stable, since [25].
For the proposed method, a global uniform stability can also be proved using the Lyapunov function. The proof can be obtained more easily than for classic SDRE, because feedback compensator gains are state-independent, and for a closed-loop system, there is no problem with generalization and definition of an attraction region.
Assuming that SDC parameterization is stabilizable and detectable for all , then the closed-loop matrix is symmetric for all , and the solution of SDRE is asymptotically stable when . Let the control law be in the form
and satisfies ARE
while is taken from
Then, the system in closed-loop form
is globally asymptotically stable if is the unique symmetric positive-defined matrix.
Let us define the as Lyapunov function
and
for , where in has the origin, and constants and are obtained from
and
for .
Taking Equation (56), assuming that assures linearization of Equations (45) and (46), and that the solution of ARE, Equation (54), is always symmetric, then
Then, taking into consideration (54), it is possible to obtain
Let us assume that
where
for and .
Generally, in an SDRE control problem with infinite time horizon, the existence of constants do not assure global stability. The closed-loop matrix is state-dependent but can be generalized to global stability by defining the region of attraction [39].
5. Numerical Simulation
To present a numerical example, the mentioned quadcopter model was chosen. Typical SDRE control technique was compared with its modified version.
Considering a quadcopter (presented in Figure 1) as a vehicle with four independent drives and with an electric power system located at its center of gravity, it is important to define coordinate systems in order to determine the position. A model device has six degrees of freedom, where vertical movement in the global coordinate system and three Euler angles are controlled parameters. There is a need to assume a body fixed frame and a symmetrical structure of the model with the origin in the center of mass, where every drive is independently controlled and aerodynamic effects are negligible. The mathematical model is taken from [26].
Figure 1.
Structure of a quadrotor aircraft.
As mentioned, this model needs to be described using Euler’s angles: roll angle , pitch angle , and yaw angle . These angles are a sequence of three rotations
This leads to the rotation matrix , which describes rotations of the local system in terms of the global system.
The representation of the actual model in the simulations requires us to determine differential equations that describe all relations in the model. The orientation of the vehicle is described by two vectors, and . The quadrotor’s acceleration is described by the differential equation
where:
g—the gravitational acceleration;
—the rotation matrix;
b—the thrust factor;
—the speed of rotor .
The second differential equation is presented in
Vector is defined as
where:
l—the length the of quadrotor’s arm;
d—the drag factor.
The quadrotor’s model has four control inputs (vertical movement in the global coordinate system and three Euler angles). It is assumed that the input values, which represent forces, are directly proportional to the squared angular velocity of the motor.
Let us create a new variable that describes relative motor speed
It is possible to describe the model in the state-space form, where
is the control vector, and is the state vector
Considering the attitude of the control, and applying SDRE method, the state vector
and the control vector
After factorization, it is possible to obtain
The above state-space model has SDC structure, where is state-dependent matrix, and is constant, as assumed in Equation (18).
Applying the proposed methodology and replacing by a sum of two matrices as presented in Equation (20) (for proposed method), it is possible to obtain
To present the influence on the system, weight matrices were changed during this experiment. There were three different configurations:
The values of parameters used in modeling of the object are presented below in Table 1 [40].
Table 1.
Parameters used in simulation.
Initial state and velocities were set as
Simulation time was and time step was .
The aim of the control process is stabilization at “zero” point.
The comparison of the execution time for both methods (Table 2) shows that the proposed method reduces computational effort, which can be seen in the shortened time of computation below. The computations were executed on Windows 7 Professional, 64-bit Intel® Core™ i5-5200M CPU @ 2.40GHz.
Table 2.
Simulation time.
Simulation results for configuration are presented. Differences between classical and modified SDRE method for next two configurations are unnoticeable.
In every case of and matrices configuration after a short transition phase, all angles are stabilized at a required point (Figure 2, Figure 3 and Figure 4). The waveforms for both methods are convergent. Changing the value of and matrices affects only the speed of regulation. Small differences are due to numerical errors and pseudoinversion inaccuracy.
Figure 2.
Time plot of angles.
Figure 3.
Time plot of velocities.
Figure 4.
Time plot of control.
6. Conclusions
The modeling and control of a quadcopter using the SDRE method and modified SDRE-based proposition were presented in this paper. A new method for solving a suboptimal control problem is established, and a procedure for solving the problem was presented and illustrated with a numerical example. As shown, the modified SDRE method gives the same solution as the classic SDRE method, but in the modified case, there is no need to solve a state-dependent Riccati equation for each state of the control process. This allows us to save space for implementation in real-time control systems and simplifies computations.
Author Contributions
Writing—original draft preparation, S.S. and P.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Acknowledgments
We would like to pay our gratitude and our respects to our long term scientific supervisor and colleague Krzysztof Kozłowski who passed away in 2021.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Cloutier, J.R. State-dependent Riccati equation techniques: An overview. In Proceedings of the 1997 American Control Conference (Cat. No. 97CH36041), Albuquerque, NM, USA, 6 June 1997; Volume 2, pp. 932–936. [Google Scholar]
- Cohen, M.R.; Abdulrahim, K.; Forbes, J.R. Finite-Horizon LQR Control of Quadrotors on SE_2(3). IEEE Robot. Autom. Lett. 2020, 5, 5748–5755. [Google Scholar] [CrossRef]
- Okyere, E.; Bousbaine, A.; Poyi, G.T.; Joseph, A.K.; Andrade, J.M. LQR controller design for quad-rotor helicopters. J. Eng. 2019, 2019, 4003–4007. [Google Scholar] [CrossRef]
- Gros, S.; Quirynen, R.; Diehl, M. Aircraft control based on fast non-linear MPC & multiple-shooting. In Proceedings of the 2012 IEEE 51st IEEE Conference on Decision and Control (CDC), Maui, HI, USA, 10–13 December 2012; pp. 1142–1147. [Google Scholar]
- Richter, S.; Jones, C.N.; Morari, M. Real-time input-constrained MPC using fast gradient methods. In Proceedings of the 48h IEEE Conference on Decision and Control (CDC) Held Jointly with 2009 28th Chinese Control Conference, Shanghai, China, 15–18 December 2009; pp. 7387–7393. [Google Scholar]
- Fnadi, M.; Alexandre dit Sandretto, J. Experimental Validation of a Guaranteed Nonlinear Model Predictive Control. Algorithms 2021, 14, 248. [Google Scholar] [CrossRef]
- Lin, L.G. Nonlinear Control Systems: A ‘State-Dependent (Differential) Riccati Equation’ Approach. Ph.D. Thesis, Faculty of Engineering Science, KU Lueven and NCTU, Leuven, Belgium, 2014. [Google Scholar]
- Fnadi, M.; Du, W.; Plumet, F.; Benamar, F. Constrained Model Predictive Control for dynamic path tracking of a bi-steerable rover on slippery grounds. Control Eng. Pract. 2021, 107, 104693. [Google Scholar] [CrossRef]
- Mracek, C.P.; Cloutier, J.R. Control designs for the nonlinear benchmark problem via the state-dependent Riccati equation method. Int. J. Robust Nonlinear Control 1998, 8, 401–433. [Google Scholar] [CrossRef]
- Çimen, T. State-dependent Riccati equation (SDRE) control: A survey. IFAC Proc. Vol. 2008, 41, 3761–3775. [Google Scholar] [CrossRef]
- Kaczorek, T. Minimum energy control of positive continuous- time linear systems with bounded inputs. Int. J. Appl. Math. Comput. Sci. 2013, 23, 725–730. [Google Scholar] [CrossRef][Green Version]
- Bernat, J.; Stepien, S.J.; Stranz, A.; Superczynska, P. Infinite-time linear–quadratic optimal control of the BLDC motor exploiting a nonlinear finite element model. COMPEL- Int. J. Comput. Math. Electr. Electron. Eng. 2017, 36, 633–648. [Google Scholar] [CrossRef]
- Stansbery, D.T.; Cloutier, J.R. Position and attitude control of a spacecraft using the state-dependent Riccati equation technique. In Proceedings of the 2000 American Control Conference, ACC (IEEE Cat. No. 00CH36334), Chicago, IL, USA, 28–30 June 2000; Volume 3, pp. 1867–1871. [Google Scholar]
- Razzaghi, P.; Al Khatib, E.; Bakhtiari, S. Sliding mode and SDRE control laws on a tethered satellite system to de-orbit space debris. Adv. Space Res. 2019, 64, 18–27. [Google Scholar] [CrossRef]
- Weickgenannt, M.; Zimmert, N.; Klumpp, S.; Sawodny, O. Application of SDRE control to servopneumatic drives. In Proceedings of the 2010 IEEE International Conference on Control Applications, Yokohama, Japan, 8–10 September 2010; pp. 1725–1730. [Google Scholar]
- Jing-Liang, S.; Chun-Sheng, L.; Ke, L.; Hao-Ming, S. Optimal robust control for attitude of quad-rotor aircraft based on sdre. In Proceedings of the 2015 34th Chinese Control Conference (CCC), Hangzhou, China, 28–30 July 2015; pp. 2333–2337. [Google Scholar]
- Guo, R.; Wu, A.; Lang, Z.; Zhang, X. A nonlinear attitude control method for an unmanned helicopter. In Proceedings of the 2010 2nd International Asia Conference on Informatics in Control, Automation and Robotics (CAR 2010), Wuhan, China, 6–7 March 2010; Volume 1, pp. 166–169. [Google Scholar]
- Guo, R.; Chen, J. Sdre attitude control with global asymptotic stability for an unmanned helicopter. In Proceedings of the 2011 International Conference on Transportation, Mechanical, and Electrical Engineering (TMEE), Changchun, China, 16–18 December 2011; pp. 1044–1049. [Google Scholar]
- dos Santos, G.P.; Balthazar, J.M.; Janzen, F.C.; Rocha, R.T.; Nabarrete, A.; Tusset, A.M. Nonlinear dynamics and SDRE control applied to a high-performance aircraft in a longitudinal flight considering atmospheric turbulence in flight. J. Sound Vib. 2018, 436, 273–285. [Google Scholar] [CrossRef]
- Chipofya, M.; Lee, D.J. Position and altitude control of a quadcopter using state-dependent Riccati equation (SDRE) control. In Proceedings of the 2017 17th International Conference on Control, Automation and Systems (ICCAS), Jeju, Korea, 18–21 October 2017; pp. 1242–1244. [Google Scholar]
- Shihabudheen, K.; Thankachan, J.; Vasista, C. SDRE control of flexible beam manipulator. In Proceedings of the 2015 International Conference on Soft Computing Techniques and Implementations (ICSCTI), Faridabad, India, 8–10 October 2015; pp. 148–154. [Google Scholar]
- Nekoo, S.R. Nonlinear closed loop optimal control: A modified state-dependent Riccati equation. ISA Trans. 2013, 52, 285–290. [Google Scholar] [CrossRef] [PubMed]
- Roudkenary, K.A.; Khaloozadeh, H.; Sedigh, A.K. SDRE control of non-affine systems. In Proceedings of the 2016 4th International Conference on Control, Instrumentation, and Automation (ICCIA), Qazvin, Iran, 27–28 January 2016; pp. 239–244. [Google Scholar]
- Itik, M.; Salamci, M.U.; Banks, S.P. SDRE optimal control of drug administration in cancer treatment. Turk. J. Electr. Eng. Comput. Sci. 2010, 18, 715–730. [Google Scholar]
- Banks, H.; Lewis, B.; Tran, H.T. Nonlinear feedback controllers and compensators: A state-dependent Riccati equation approach. Comput. Optim. Appl. 2007, 37, 177–218. [Google Scholar] [CrossRef]
- Voos, H. Nonlinear state-dependent Riccati equation control of a quadrotor UAV. In Proceedings of the 2006 IEEE Conference on Computer Aided Control System Design, 2006 IEEE International Conference on Control Applications, 2006 IEEE International Symposium on Intelligent Control, Munich, Germany, 4–6 October 2006; pp. 2547–2552. [Google Scholar]
- Barata, J.C.A.; Hussein, M.S. The Moore–Penrose pseudoinverse: A tutorial review of the theory. Braz. J. Phys. 2012, 42, 146–165. [Google Scholar] [CrossRef]
- Knobloch, H.W.; Kwakernaak, H. Lineare Kontrolltheorie; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
- Kwakernaak, H.; Sivan, R. Linear Optimal Control Systems; Wiley: New York, NY, USA, 1972; Volume 1. [Google Scholar]
- Anderson, B.D.; Moore, J.B. Optimal Control: Linear Quadratic Methods; Courier Corporation: Tokyo, Japan, 2007. [Google Scholar]
- Wernli, A.; Cook, G. Suboptimal control for the nonlinear quadratic regulator problem. Automatica 1975, 11, 75–84. [Google Scholar] [CrossRef]
- Cloutier, J.R.; D’Souza, C.N.; Mracek, C.P. Nonlinear regulation and nonlinear H∞ control via the state-dependent Riccati equation technique: Part 1, theory. In Proceedings of the First International Conference on Nonlinear Problems in Aviation and Aerospace, Daytona Beach, FL, USA, 9–11 May 1996; Embry-Riddle Aeronautical Univ. Press: Daytona Beach, FL, USA, 1996; pp. 117–130. [Google Scholar]
- Cloutier, J.R.; Stansbery, D.T.; Sznaier, M. On the recoverability of nonlinear state feedback laws by extended linearization control techniques. In Proceedings of the 1999 American Control Conference (Cat. No. 99CH36251), San Diego, CA, USA, 2–4 June 1999; Volume 3, pp. 1515–1519. [Google Scholar]
- Liang, Y.W.; Lin, L.G. Analysis of SDC matrices for successfully implementing the SDRE scheme. Automatica 2013, 49, 3120–3124. [Google Scholar] [CrossRef]
- Meyer, C.D., Jr. Generalized inversion of modified matrices. SIAM J. Appl. Math. 1973, 24, 315–323. [Google Scholar] [CrossRef]
- Kaczorek, T.; Dzieliński, A.; Dabrowski, W.; Łopatka, R. Podstawy Teorii Sterowania; Wydawnictwo WNT: Warsaw, Poland, 2014. [Google Scholar]
- Erdem, E.; Alleyne, A.G. Globally stabilizing second order nonlinear systems by SDRE control. In Proceedings of the 1999 American Control Conference (Cat. No. 99CH36251), San Diego, CA, USA, 2–4 June 1999; Volume 4, pp. 2501–2505. [Google Scholar]
- Brauer, F.; Nohel, J.A. The Qualitative Theory of Ordinary Differential Equations: An Introduction; Courier Corporation: Tokyo, Japan, 2012. [Google Scholar]
- Heydari, A.; Balakrishnan, S. Closed-form solution to finite-horizon suboptimal control of nonlinear systems. Int. J. Robust Nonlinear Control 2015, 25, 2687–2704. [Google Scholar] [CrossRef]
- Zhao, W.; Go, T.H. Quadcopter formation flight control combining MPC and robust feedback linearization. J. Frankl. Inst. 2014, 351, 1335–1355. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).