Paper 3-Linear Quadratic Regulator Design
Paper 3-Linear Quadratic Regulator Design
net/publication/324966895
CITATIONS READS
5 1,175
1 author:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
A VHDL application for kinematic equation solutions of multi-degree-of-freedom systems View project
All content following this page was uploaded by Hüseyin Oktay Erkol on 18 May 2018.
Abstract—In this study, a linear quadratic regulator (LQR) Another popular system for control theory applications is
based position controller is designed and optimized for an inverted pendulum. Kumar et al. designed an LQR based
inverted pendulum system. Two parameters, vertical pendulum controller for balance and trajectory tracking problem of a Self-
angle and horizontal cart position, must be controlled together to Erecting Single Inverted Pendulum [4]. They reported that
move a pendulum to desired position. PID controllers are LQR based system had faster and smooth stabilizing process
conventionally used for this purpose and two different PID compared to Full State Feedback controller designed by pole
controllers must be used to move the pendulum. LQR is an placement. Prasad et al. made a study to analyze and compare
alternative method. Angle and position of inverted pendulum can the PID and LQR controlled system under disturbance [5]. The
be controlled using only one LQR. Determination of Q and R
results was justified that the advantages of the LQR controller.
matrices is the main problem when designing an LQR and they
must be minimized a defined performance index. Determination Trial and error method is widely used method to determine
of the Q and R matrices is generally made by trial and error the elements of the Q and R matrices of an LQR controller [6].
method but finding the optimum parameters using this method is However there are many study shows the optimization
difficult and not guaranty. An optimization algorithm can be algorithms help to determine the optimum parameters for the
used for this purpose and in this way; it is possible to obtain controller. Ata et al. designed an LQR based controller for an
optimum controller parameters and high performance. That’s inverted pendulum on a cart. In the study, elements of the Q
why an optimization method, grey wolf optimizer, is used to tune and the R matrices of the controller were selected by Artificial
controller parameters in this study.
Bee Colony Algorithm to achieve the optimum performance.
Keywords—Grey wolf optimizer; inverted pendulum; position Optimization process was made on a nonlinear model and the
controller; linear quadratic regulator; optimized controller design results showed the ABC optimized system had good
performance [7].
I. INTRODUCTION
In another study, an unmanned rotorcraft pendulum was
Linear Quadratic Regulator (LQR) is one of the optimum controlled using LQR optimized by ABC and Particle Swarm
control methods and it is successfully applied to many systems. Optimization algorithm [8]. The designed system was also
Selection of the controller parameters is the main problem tested under disturbance and the results showed that the ABC
when designing an LQR controller. The selected parameters optimized system had better performance than the PSO
must minimize a performance index. The selection process is optimized system. Çatalbaş et al. was designed an LQR
conventionally made by trial and error method and it makes the controller for a Boeing 707 flight model and the unstable
process difficult, not guarantees finding the optimum model was controlled successfully by the LQR controller [9].
parameters and may take long time. Optimization algorithms
help designers to overcome these problems and guarantee In this study, an inverted pendulum system is modeled and
finding one of the optimum solutions. controlled by LQR. Q and R matrices of the LQR are
optimized by Grey Wolf Optimizer (GWO). All the study is
One of the basic systems for control theory is DC motor made by simulation using Matlab program. Two different
and LQR controller is one of the methods to control its speed objective functions are used for the optimization process:
and position. Ruderman et al. designed an LQR based speed firstly performance index of the LQR is used and then an
controller for a DC motor [1]. Abut compared the PID improved objective function obtained adding settling time and
controlled DC motor and the LQR controlled DC motor under total absolute error to the performance index is used. The
disturbance and the results showed the LQR based system has controller is successfully optimized using both of the objective
better performance than PID based one [2]. Haron deigned functions.
speed and position controllers for a DC motor in his study. In
the study, PID and LQR controllers was used and made a II. LINEAR QUADRATIC REGULATOR
performance comparison. The results show again the LQR LQR is one of the optimal control methods and widely used
controller has better performance than PID controller [3]. in the optimal control problems. The LQR method is used to
control of complex systems that needs high performance. A
13 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 9, No. 4, 2018
system described by linear differential equations can be shown axis. The position control of the cart is also possible using an
in steady-state form given in (1) and (2). A is system matrix, B extra controller.
is input matrix, C is output matrix and D is feed forward
matrix. “x” is the state vector, “y” is the output vector and “v”
is the input vector. A conventional LQR problem is to find the
Q an R matrix which minimizes the cost function (performance
index) based on the input “v” [10]. Performance index “J” is
defined as given in (3). The control energy is represented by
v(t)TRv(t), while the transient energy is expressed as x(t)TQx(t)
[11]. Q is symmetric positive semi definite matrix and R is
symmetric positive definite matrix.
Fig. 1. Structure of inverted pendulum on a cart.
̇( ) ( ) ( )
The differential equations of the system can be derived
using Euler-Lagrange method. The equations of the system
( ) ( ) ( )
given in Fig. 1 are given in (7) and (8) [15], [16]. “I” is the
moment of inertia of the pendulum, “m” is the mass of the
∫ [ ( ) ( ) ( ) ( )] pendulum, “M” is the mass of the cart, “l” is the length of the
pendulum, “x” is the cart position, “θ” is the angle between the
Designing a LQR controller consists of the following steps: pendulum and the vertical axis, “F” is the input force.
Step 1: Q and R matrix, minimizing J, must be chosen.
( ) ̈ ̈
Step 2: Then the algebraic Riccati equation, given in (4), is
solved to obtain P using Q and R.
( ) ̈ ̇ ̈ ̇
Step 3: Optimum feedback gain matrix “K” is calculated
using (5).
When the “θ” is enough small, the equations can be
Step 4: System response is checked. If the system response is
linearized and steady-space equations (given in (9)) of the
not met the required specifications, repeat all steps
system can be obtained. “a” used in (9) is given in (10). The
again.
system parameters are given in Table I.
̇
̇
( )
[ ] [ ]
̇ ̈
A pre-compensation factor must be used when the system ( ) ̇ ̈
has a bigger steady-state error than expected. Pre- [ ] [ ]
compensation factor calculation can be made by the equation
given in (6). ( )
14 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 9, No. 4, 2018
15 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 9, No. 4, 2018
16 | P a g e
www.ijacsa.thesai.org
View publication stats