Optimisation PID Using Sliding mode script
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want à script for optimise PID paramèters Using Sliding Mode Control
0 Kommentare
Antworten (2)
Sam Chak
am 1 Mai 2023
Hi @Tarek
I don't think that SMC can optimize the PID gains. The structure of SMC is not an optimization algorithm.
Before optimizing the PID gains, have you designed a stabilizing PID controller?
If you want to optimize the PID gains, I think that the basic LQR algorithm works for a linear plant or a linearized system.
If you need a demonstration, please show the model of the system.
Sam Chak
am 14 Mär. 2024
Hi @Tarek
Are you still working on this? I revisited this control problem and discovered that a PID controller can be tuned to eliminate the steady-state error in the step response.
s = tf('s');
%% Plant
Gp = (-0.014*s^2 + 3.436e-5*s + 1.214e-8)/(s^2 + 0.0004*s + 5.834e-9)
%% Controller
Gc = pidtune(Gp, 'PIDF')
%% Closed-loop system
Gcl = minreal(feedback(Gc*Gp, 1))
%% Plots
step(Gp ), hold on
step(Gcl), grid on
legend('Plant', 'Closed-loop', 'location', 'se')
0 Kommentare
Siehe auch
Kategorien
Mehr zu PID Controller Tuning finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!