Adaptive Sliding Mode Control

Versión 24.2.1 (5,92 MB) por Jaclyn
Youtube: Adaptive Sliding-Mode Control for Boost DC–DC Converters: MATLAB Implementation
3 Descargas
Actualizado 26 oct 2025

Ver licencia

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

Citar como

Jaclyn (2025). Adaptive Sliding Mode Control (https://la.mathworks.com/matlabcentral/fileexchange/182394-adaptive-sliding-mode-control), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2024b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
24.2.1

24.2.0

24.2.0