Sei sulla pagina 1di 14

Faculty of Engineering- Aerospace department

Cairo University

AER 4033|Modern Control in Aeronautical


Systems

1 24 Radwa Osama Mohamed

1 25 Rana Hatem Mostafa

1 26 Sara Ahmed Hassan

1 27 Soaad Reda Abdelmageed

Under Supervision of: Prof. Gamal El-Bayoumi


December 27, 2023
Contents
Table of figures............................................................................................................................................... 3
Introduction .................................................................................................................................................... 4
1. Sliding Mode Control .............................................................................................................................. 5
1. Control System Problems ................................................................................................................... 6
2. Design Control Law for Regulator ....................................................................................................... 6
3. Example ............................................................................................................................................. 7
4. Design Control Law for Tracking......................................................................................................... 8
2. Zero dynamics............................................................................................................................................ 9
Finding s .................................................................................................................................................... 9
finding 𝒙𝒐, 𝒖𝒐 ........................................................................................................................................... 9
MATLAB code ............................................................................................................................................ 9
3. Adaptive Control ....................................................................................................................................... 11
Types of Adaptive Controllers in Terms of the Way to Estimate Controller Parameters:............................. 11
The Basic Schemes for Adaptive Control .................................................................................................. 11
4.Lyapunov stability ...................................................................................................................................... 13

2|Page
Table of figures
Figure 1 Sliding Surface ..................................................................................................................................................... 5
Figure 2 Sliding Mode Controller...................................................................................................................................... 5
Figure 3 Transit response for regulator........................................................................................................................... 6
Figure 4 Transit response for Tracking ........................................................................................................................... 6
Figure 5 Sliding Mode Control for Regulator.................................................................................................................. 7
Figure 6 Example of MRAC scheme ............................................................................................................................. 11
Figure 7 Example of STAC scheme .............................................................................................................................. 12
Figure 8 simple pendulum .............................................................................................................................................. 14

3|Page
Introduction

This report delves into the interconnected topics of zero dynamics, Lyapunov stability, sliding
control, and adaptive control, exploring their significance and applications of control systems.
Where Zero dynamics play a pivotal role in the analysis and control of dynamic systems. Often
described as the internal dynamics that remain when the external dynamics are eliminated,
zero dynamics capture the inherent behavior of a system, influencing stability, performance,
and controllability. Understanding and characterizing zero dynamics are crucial for devising
control strategies that effectively manage the intricacies of complex systems. And Lyapunov
stability analysis stands as a cornerstone in control theory, providing a robust framework for
assessing the stability of equilibrium points in dynamic systems. By employing Lyapunov
functions or Lyapunov-like functions, this methodology allows for a comprehensive evaluation
of the system’s behavior. And Sliding control is a dynamic approach that addresses the
challenges of maintaining stability and precision in the presence of disturbances and
uncertainties. This methodology involves the creation of a sliding surface, a hyper-plane in the
state space, which guides the system’s trajectory. Investigating the principles and applications
of sliding control provides insights into its ability to enhance the transient response and
resilience of control systems. And The concept of adaptive control introduces a flexible model
that enables systems to autonomously adjust their parameters in response to changes in the
environment or system dynamics. This adaptability is crucial in scenarios where uncertainties
or variations may challenge the effectiveness of traditional control strategies.
This report aims to provide a comprehensive understanding of zero dynamics, Lyapunov
stability, sliding control, and adaptive control, individually and in their interconnected
applications. Through theoretical insights and practical examples.

4|Page
1. Sliding Mode Control
• The control action u can be split into two regions:
1. Sliding Surface
For 2y+5x=S=10
S=0

Figure 1 Sliding Surface

2. Reaching Mode
Ṡ(-) if S (+)
Ṡ(+) if S (-)
Ṡ=-sgn(S)

• The key to the sliding mode controller is the design of an appropriate sliding surface

Figure 2Sliding Mode Controller

5|Page
• Reaching Mode
1. Constant Rate:-Ksgn(S) K>0
2. Constant-Proportional Rate:-qsgn(S)-KS q>0,K>0
3. Power Rate: −𝑘|𝑆|𝛾 𝑠𝑔𝑛(𝑆) K>0, γ>1

1. Control System Problems


• Regulator
Improve the transit response of the system
(guaranteeing the stability of the closed loop system).

• Tracking Figure 3 Transit response for regulator


Follow reference input with zeros steady state
error.

2. Design Control Law for Regulator


System: ẍ = 𝑓(𝑋, Ẋ , 𝑢, 𝑡 , 𝛥) Figure 4 Transit response for Tracking

State Space Model: 𝑋 = 𝑋1


Ẋ = Ẋ1 = 𝑋2
ẍ = ẍ1 = Ẋ2 = 𝑓(𝑋, Ẋ , 𝑢, 𝑡 , 𝛥)

Sliding Surface:
𝑆 = 𝑎𝑋1 + 𝑋2 𝑎>0

First Derivative of S
Ṡ = 𝑎Ẋ1 + Ẋ2 = 𝑎𝑋2 + 𝑓(𝑋, Ẋ , 𝑢, 𝑡, 𝛥)
Ṡ = −𝐾|𝑆|𝛾 𝑠𝑔𝑛(𝑆) 𝐾 > 0, 0 > 𝛾 > 1
𝑎𝑋2 + 𝑓(𝑋, Ẋ , 𝑢, 𝑡, 𝛥) = −𝐾|𝑆|𝛾 𝑠𝑔𝑛(𝑆)

Control Law:
𝑢 = − 𝑎𝑋2 − 𝑓(𝑋, Ẋ , 𝑢, 𝑡, 𝛥) − 𝐾|𝑆|𝛾 𝑠𝑔𝑛(𝑆)

6|Page
3. Example
Design Sliding Mode Control for given system: ẍ = 𝑐1 Ẋ2 + 𝑐2𝑋 + 𝑢 with c1 and c2 are uncertainties and
bounded c1<C1 and c2<C2

State Space Model: X=X1

Ẋ = Ẋ1 = 𝑋2

ẍ = ẍ1 = Ẋ2 = 𝑐1 Ẋ2 + 𝑐2𝑋 + 𝑢

Sliding Surface: S=aX1+X2

Ṡ = 𝑎Ẋ1 + Ẋ2 = 𝑎𝑋2 + 𝑐1 Ẋ2 + 𝑐2𝑋 + 𝑢 = −𝐾|𝑆|𝛾 𝑠𝑔𝑛(𝑆)

Control Law: 𝑢 = −𝑎𝑋2 − 𝐶1Ẋ2 − 𝐶2𝑋 − 𝐾|𝑆|𝛾 𝑠𝑔𝑛(𝑆)

For c1=0.4,c2=0.7,C1=5,C2=8,a=2,K=0.5,gamma=0.66

Figure 5 Sliding Mode Control for Regulator

7|Page
4. Design Control Law for Tracking
System: ẍ = 𝑓(𝑋, Ẋ , 𝑢, 𝑡 , 𝛥)

State Space Model: X=X1

Ẋ = Ẋ1 = 𝑋2

ẍ = ẍ1 = Ẋ2 = 𝑓(𝑋, Ẋ , 𝑢, 𝑡 , 𝛥)

𝑒 = 𝑋𝑟 − 𝑋

ė = Ẋ𝑟 − Ẋ

Sliding Surface: 𝑆 = 𝑎𝑒 + ė = 𝑎(𝑋𝑟 − 𝑋1) + ( Ẋ𝑟 − 𝑋2)

Xr:constant → Ẋ𝑟 = 0 ∶ 𝑆 = 𝑎𝑋𝑟 − 𝑎𝑋1 − 𝑋2

Ṡ = −𝐾|𝑆|𝛾 𝑠𝑔𝑛(𝑆)

Control Law 𝑢 = − 𝑎𝑋2 − 𝑓(𝑋, Ẋ , 𝑢, 𝑡, 𝛥) + 𝐾|𝑆|𝛾 𝑠𝑔𝑛(𝑆)

8|Page
2. Zero dynamics
In mathematics, zero dynamics is known as the concept of evaluating the effect of zero on systems.in
control field zero dynamics refers to the control action chosen in which the output variables of the
system are kept identically zero in presence of both initial conditions and input. Here we will consider
a procedure of finding the input and initial conditions that kept the output identically zero (means zero
for all the time interval) for a system that already has a controller.
The derivation:
Let the system is represented in state space model
𝑥̇ = 𝐴𝑥 + 𝐵𝑢
𝑦 = 𝐶𝑥 + 𝐷𝑢
And as most of the systems that there relative degree is higher than 1 so D=0
Assume the solution and the input as following
𝑥 = 𝑥𝑜 𝑒 −𝑠𝑡 𝑎𝑛𝑑 𝑢 = 𝑢𝑜 𝑒 −𝑠𝑡
The new representation will be
𝑥𝑜 𝑠 𝑒 −𝑠𝑡 = 𝐴 𝑥𝑜 𝑒 −𝑠𝑡 + 𝐵 𝑢𝑜 𝑒 −𝑠𝑡
𝑦 = 𝐶 𝑥𝑜 𝑒 −𝑠𝑡
By representing the above two equations in matrix form
𝑠𝐼 − 𝐴 −𝐵 𝑥𝑜 −𝑠𝑡 0
[ ][ ]𝑒 =[ ]
𝐶 0 𝑢𝑜 𝑦
And since we are studying the system when y=0 so we set the y value above to zero
To get a system of equations that has 3 unknowns 𝑥𝑜 , 𝑠, 𝑢𝑜 - 𝑥𝑜 is a vector of initial
conditions-

Finding s
to solve this problem non of 𝑥𝑜 , 𝑢𝑜 can equal zero although 𝑒 −𝑠𝑡 so it led to get the
determinant of the matrix equals zero, from this step we will get an equation with only one
unknown which is s so we can obtained it easily .

finding 𝒙𝒐 , 𝒖𝒐
as the matrix now is fully defined so the system can be easily solved but since the matrix
wont be full rank so we will get a many possible solution for both unknowns to satisfy that
the output equals zero.

MATLAB code

clc
clear all

state space representation

A=[-7 -12;
1 0];
B=[1;

9|Page
0];
C=[1 2];
D=0;

finding the initial conditions and input parameters values

syms s x1 x2 u0
M(s)=[s*eye(2)-A -B;
C 0]

M(s) =

s=solve(det(M)==0)

s =

M=M(s);
M=M*[x1;x2;u0]

M =

vv=solve([M(1)==0,M(2)==0]);
x1=vv.x1

x1 =

x2=vv.x2

x2 =

final step is to set the constant value of the input to get the proper initial conditions for zero output.

10 | P a g e
3. Adaptive Control

Adaptive control is used when the use of a fixed controller cannot achieve a satisfactory compromise
between robust stability and performance. It changes the control action of the system to reach the
required dynamics when the inputs to the system or the environment changes, like the airplane's mass
that changes with time due to fuel being burned, so, in simple terms, it can be said that it's a controller
with adjustable parameters and a mechanism for automatically adjusting those parameters, it's a way
if dealing with parametric uncertainty.

Types of Adaptive Controllers in Terms of the Way to Estimate Controller Parameters:

A. Indirect Adaptive Controller:


where in the estimated parameters are those directly used in the adaptive controller
B. Direct Adaptive Controller:
which the estimated parameters are used to calculate required controller parameters

The Basic Schemes for Adaptive Control

There are 2 basic schemes of adaptive control:

A. Model reference adaptive control:Performance specifications are given in terms of reference


model

Figure 6 Example of MRAC scheme

11 | P a g e
B. Self-tuning adaptive control:Model-based tuning consists of two operations:
Model building via identification Controller design using the identified model

Figure 7 Example of STAC scheme

Self-tuning and auto-tuning:


In self-tuning, there is a continuous update of controller parameters, it's used for truly time-varying
plants.
In auto-tuning, adaption process is stopped once controller parameters are near convergence, it's
used for time invariant of very slowly varying processes.

12 | P a g e
4.Lyapunov stability
Energy function and Energy-Like function

An energy function and a Lyapunov-like function which is also called energy-like function are both
mathematical concepts used in the analysis of dynamic systems, particularly in the control theory.
While they serve different purposes, they share some similarities in terms of their properties.
Energy function
An energy function is a mathematical function often associated with physical systems. it is a quantity
that represents the system’s energy and is typically derived from the system’s dynamics. For example,
in mechanical systems, the total energy function might involve kinetic and potential energy terms as
the simple pendulum. In electrical circuits, it could relate to the stored energy in capacitors and
inductors.

Energy-like function
When a system is represented in state-space form, especially if it’s a complex or high-dimensional
system, Lyapunov stability analysis using Lyapunov functions is a preferred method. As there will be
a complexity in the determination of the physical model of the system.

Lyapunov stability
Lyapunov stability provides a mathematical framework to understand whether a system will converge
to a stable state, diverge, or remain in a balanced state. Lyapunov stability is a concept in control
theory that assesses the stability of an equilibrium point in a dynamical system. It uses Lyapunov
functions, which are mathematical functions that help analyze the behavior of the system over time. If
a Lyapunov function exists and satisfies certain conditions, it indicates the system’s stability. If the
function decreases over time, the system is stable; if it increases, the system is unstable.
The Lyapunov function is defined as V(X) where is a scalar function defined over the state space of
the system. The variable X represents the state vector of the system.
The Lyapunov stability analysis involves finding a Lyapunov function V(X) . The Lyapunov function can
be positive definite and negative definite.
Positive definite Lyapunov function: V(X) is a positive quantity for all values of X and V(X) is equal to
zero when X is zero.
Negative definite Lyapunov function: V(X) is a negative quantity for all values of X and V(X) is equal
to zero when X is zero.

Lyapunov stability of linear time invariant continuous systems


∵ 𝑋̇=AX
∴ 𝑙𝑒𝑡 𝑉 (𝑋) = 𝑋 𝑇 𝑃 𝑋 where P is positive definite.
𝑉 (𝑋̇ ) =𝑋 𝑇 (𝑃𝐴 + 𝐴𝑇 𝑃)𝑋
Let 𝑃𝐴 + 𝐴𝑇 𝑃 is -Q where Q is positive definite.
∴ 𝑉 (𝑋 ̇ ) is negative definite so the system is stable.
So, we must choose Q to be positive definite and check whether P is negative definite or not as if P
is negative definite then the system is stable.

13 | P a g e
Example for energy equation method
Simple pendulum
The energy equation for a simple pendulum is derived from the conservation of mechanical energy,
considering the kinetic and potential energy of the system.
Kinetic energy = 0.5𝑚𝑣 2 = 𝐾𝐸
Potential energy = 𝑚𝑔𝐿(1 − 𝑐𝑜𝑠𝜃) = 𝑃𝐸
Total energy = 𝐾𝐸 + 𝑃𝐸 = 𝐸
𝐸 = 0.5𝑚𝐿𝜃̇ + 𝑚𝑔𝐿(1 − 𝑐𝑜𝑠𝜃) which is positive definite
∴ 𝐸̇ =m𝐿2 𝜃̇ 𝜃̈ + 𝑚𝑔𝐿(𝜃̇sin 𝜃)

By taking the moment at the hinge where counterclockwise is


a positive direction
∴ 𝑚𝐿2 𝜃̈ + 𝑚𝑔𝐿𝑠𝑖𝑛𝜃 = 0
∴ 𝐸̇ = 0
Figure 8 simple pendulum
But by adding friction term which is equal to 𝑏𝜃
∴ 𝐸̇ = −𝑏𝜃̇ 2 which is negative definite then the system is stable.

Example for the Lyapunov function method


0 1
Given the following state space model 𝑋̇ = [ ]𝑋
−1 −1
1 0
Let Q=[ ] which is +ve definite
0 1
∴ 𝑃𝐴 + 𝐴𝑇 𝑃 = −𝑄
Which will lead to the system of four equations which will be solved together so that the P matrix will
be as the following:
1.5 0.5
P=[ ]
0.5 1
Where ∆1 = 1.5 and ∆2 = 1.5 − 0.25 = 1.25
∵ ∆1 𝑎𝑛𝑑 ∆2 𝑎𝑟𝑒 𝑝𝑜𝑠𝑡𝑖𝑣𝑒 𝑞𝑢𝑎𝑛𝑡𝑖𝑡𝑦 then the system is stable.

14 | P a g e

Potrebbero piacerti anche