Adaptive Sliding Mode Control
Version 24.2.1 (5,92 MB) von
Jaclyn
Youtube: Adaptive Sliding-Mode Control for Boost DC–DC Converters: MATLAB Implementation
Mo phong Video youtube
Adaptive Sliding-Mode Control for Boost DC–DC Converters: MATLAB Implementation
function [u,s,dx1,dx2,dv1,dtheta] = SMC(x1,x2,Vref,x1_e,x2_e,V1_e,theta_e)
%%Total sliding mode control
L=180e-6;
C=150e-6;
R=40;
iref=Vref^2/(R*60);
K1=883*5;
K2=883*5;
K=[K1 K2];
Lemda1=200;
Lemda2=250;
eps = 1e-6; % <-- Thêm hằng số epsilon
s=x1_e-Vref^2/(V1_e + eps)*theta_e; % <-- Đã sửa V1_e
u=1-(V1_e+K1*L*(x1-x1_e)+Lemda2*L*Vref^2/(V1_e + eps)*x2*(x2-x2_e)+Lemda2*L*Vref^2/((V1_e + eps)^2)*theta_e*(x1-x1_e))/(x2_e + eps); % <-- Đã sửa V1_e và x2_e
if u<0
u=0;
end
if u>0.95
u=0.95;
end
dx1=-(1-u)*x2_e/L+V1_e/L+K1*(x1-x1_e);
dx2=(1-u)*x1_e/C-theta_e/C*x2_e+K2*(x2-x2_e);
dtheta=-Lemda1*x2*(x2-x2_e);
dv1=Lemda2*(x1-x1_e);
%D=1-u;
end
Zitieren als
Jaclyn (2025). Adaptive Sliding Mode Control (https://de.mathworks.com/matlabcentral/fileexchange/182394-adaptive-sliding-mode-control), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2024b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 24.2.1 | 24.2.0 |
||
| 24.2.0 |