Sliding Mode Control and Observation 学习 Chapter 1: Terminal Sliding Mode 终端滑模

The advantage of terminal sliding mode (TSM) control lies in that it solves the infinite time convergence problem of linear sliding mode (LSM) control. Based on the power sliding hyper plane, the finite time convergence can be achieved, and the convergence performance and robustness of the system are improved…
Considering a simple second-order system:
x ˙ 1 = x 2 x ˙ 2 = f + u \dot{x}_1=x_2\\ \dot{x}_2=f+u x˙1=x2x˙2=f+u
and assuming f = 1 f=1 f=1.

  1. LSM
    Designing the LSM surface and controller as
    s 1 = x 2 + c x 1 u 1 = − ρ s i g n ( s 1 ) − c x 2 s_1=x_2+cx_1\\ u_1=-\rho sign(s_1)-cx_2 s1=x2+cx1u1=ρsign(s1)cx2
    Constructing a Lyapunov function as: V 1 = 1 2 s 2 V_1=\frac{1}{2}s^2 V1=21s2, we have
    V ˙ 1 = s 1 s ˙ 1 = s 1 ( − ρ s i g n ( s 1 ) + f ) ≤ − ( ρ − f ) ∣ s 1 ∣ = − η 2 V 1 ( 0 ) \dot{V}_1=s_1\dot{s}_1\\ =s_1(-\rho sign(s_1)+f)\\ \leq -(\rho-f)|s_1|\\ =-\eta \sqrt{2} \sqrt{V_1(0)} V˙1=s1s˙1=s1(ρsign(s1)+f)(ρf)s1=η2 V1(0)
    Solving the above equation, we have
    Sliding Mode Control and Observation 学习 Chapter 1: Terminal Sliding Mode 终端滑模_第1张图片
    Thus, the system states x 1 , x 2 x_1,x_2 x1,x2 will reach the sliding surface in finite time t r t_r tr.
    When s 1 = 0 s_1=0 s1=0, we have
    Sliding Mode Control and Observation 学习 Chapter 1: Terminal Sliding Mode 终端滑模_第2张图片
    That is the infinite time convergence propety of LSM.

Choosing c = 1 , ρ = 2 c=1, \rho=2 c=1,ρ=2, the system convergence process can be obtained in the following:
Sliding Mode Control and Observation 学习 Chapter 1: Terminal Sliding Mode 终端滑模_第3张图片
Sliding Mode Control and Observation 学习 Chapter 1: Terminal Sliding Mode 终端滑模_第4张图片
Sliding Mode Control and Observation 学习 Chapter 1: Terminal Sliding Mode 终端滑模_第5张图片
It can be calculated that t r = 2 t_r=2 tr=2 s, as shown in Figure 1. And after that, the system enters the sliding mode, which is shown in Figure 2-3;

  1. TSM
    Design the TSM surface and controller as
    s 2 = x 2 + c x 1 p / q u 2 = − ρ s i g n ( s 2 ) − c p q x 1 p / q − 1 x 2 s_2=x_2+cx_1^{p/q}\\ u_2=-\rho sign(s_2)-c\frac{p}{q}x_1^{p/q-1}x_2 s2=x2+cx1p/qu2=ρsign(s2)cqpx1p/q1x2
    Constructing a Lyapunov function as: V 2 = 1 2 s 2 2 V_2=\frac{1}{2}s_2^2 V2=21s22, we have the same reaching time as V 1 V_1 V1, thus, here is omitted;
    When s 2 = 0 s_2=0 s2=0, we have
    Sliding Mode Control and Observation 学习 Chapter 1: Terminal Sliding Mode 终端滑模_第6张图片
    where x 1 ( 0 ) x_1(0) x1(0) is the value of x 1 x_1 x1 when s = 0 s=0 s=0.
    The finite time convergence propety of TSM is obtained.
    Choosing c = 1 , ρ = 2 , p / q = 5 / 7 c=1, \rho =2, p/q=5/7 c=1,ρ=2,p/q=5/7, the system convergence process can be obtained in the following figures:
    Sliding Mode Control and Observation 学习 Chapter 1: Terminal Sliding Mode 终端滑模_第7张图片
    Sliding Mode Control and Observation 学习 Chapter 1: Terminal Sliding Mode 终端滑模_第8张图片
    Sliding Mode Control and Observation 学习 Chapter 1: Terminal Sliding Mode 终端滑模_第9张图片
    It it obviously shown in Figure 1 that t r = 2 t_r=2 tr=2 which is equal to that in LSM, due to the same reaching law.
    However, when s = 0 s=0 s=0 and x 1 = 0.7591 x_1=0.7591 x1=0.7591, the reaching phase ends and sliding phase begins. The finite time of sliding phase can be calculated as
    t s = x 1 ( 0 ) 1 − p / q c ( 1 − p / q ) = 0.759 1 1 − 5 / 7 1 − 5 / 7 = 3.23 s t_s=\frac{x_1(0)^{1-p/q}}{c(1-p/q)}=\frac{0.7591^{1-5/7}}{1-5/7}=3.23 s ts=c(1p/q)x1(0)1p/q=15/70.759115/7=3.23s
    which is shown in Figure 2.
    Here the proof is completed.
    Reference:
    Man, Z., Paplinski, A.P., & Wu, H.R. (1994). A robust MIMO terminal sliding mode control scheme for rigid robotic manipulators. IEEE Trans. Autom. Control., 39, 2464-2469.
clc, clear, close all

ts = 0; h  = 0.001; tf = 8;

c = 1;
rho = 2;
p = 5/7;

x1 = 1; x2 = 1;

x1out = []; x2out = []; sout = []; uout = [];
x1aout = []; x2aout = []; saout = []; uaout = [];

sig = @(x,p) abs(x)^p*sign(x);
for t = ts:h:tf
    % LSM
%     s = x2 + c * x1;
%     u = -c*x2 - rho * sign(s);
    
    %TSM
    s = x2 + c*sig(x1,p);
    u = -c*p*sig(x1,p-1)*x2 - rho * sign(s);
    
    f = 1;
    x2dot = f + u;
    x2 = x2 + x2dot * h;
    x1dot = x2;
    x1 = x1 + x1dot * h;
    
    x1out = [x1out;x1];
    x2out = [x2out;x2];
    uout = [uout;u];
    sout = [sout;s];
    
end

t = ts:h:tf;

figure
plot(t,sout);
legend('s')
grid on;

figure
plot(t,x1out,t,x2out);
legend('x1','x2')
grid on;

figure
plot(x1out, x2out);
grid on;
xlabel('x1')
ylabel('x2')

figure
plot(t,uout);
grid on;
legend('u');

你可能感兴趣的:(学习)