Machine Learning Control: Tuning a PID Controller with Genetic Algorithms

  Рет қаралды 76,307

Steve Brunton

Steve Brunton

Күн бұрын

This lecture shows how to use genetic algorithms to tune the parameters of a PID controller. Tuning a PID controller with genetic algorithms is not generally recommended, but is used to demonstrate evolutionary control algorithms.
Machine Learning Control
T. Duriez, S. L. Brunton, and B. R. Noack
www.springer.c...
Closed-Loop Turbulence Control: Progress and Challenges
S. L. Brunton and B. R. Noack
appliedmechanic...
Code: faculty.washington.edu/sbrunton/DataDrivenControl.zip
www.eigensteve...
This video was produced at the University of Washington

Пікірлер: 47
@alanzom1503
@alanzom1503 2 жыл бұрын
Great work. I would also like to point out that it can be a good idea to also plot the control law output as function of time, and play with different values of Q and R to see their effect on the outcome.
@matzelwow
@matzelwow 4 жыл бұрын
Holy shit, that was crazy, i never heard of some self tuning PID like this! Amazing!!
@tianyuliu6454
@tianyuliu6454 3 жыл бұрын
very clear illustration! huge respect!
@rubenarmandofigueroafuentes
@rubenarmandofigueroafuentes 3 ай бұрын
this was a great video steve, appreciate it a ton!
@NobixLee
@NobixLee 4 жыл бұрын
Excellent work
@parminder25
@parminder25 4 жыл бұрын
Excellent work...
@ginebro1930
@ginebro1930 4 жыл бұрын
What a great example Steve, really well explained, thanks. I know that you discouraged the use of this for real PID but i was thinking, maybe i could actually use it to tune some PI controllers when the system is non linear and matlab fails to identify the plant using diferent approachs. I mean if everything fails and other classical methods are too time consuming, just let the pc runing overnight to check if this can tune it. Or maybe you have a better approach to this.
@Eigensteve
@Eigensteve 4 жыл бұрын
If you can afford to run it overnight, I don't see why not to give it a try. For this type of optimization, there are a ton of approaches, including Monte Carlo and simplex methods, which might also work and may be pretty efficient.
@xd-os7jl
@xd-os7jl 4 жыл бұрын
@@Eigensteve How exactly use simplex method for this kind of task?
@DadaDawn
@DadaDawn 4 жыл бұрын
Love your work, but I have a question that other than using GA what are the other easier algorithms that is recommended for PID tunings ? I’m doing a project on this and is really scratching my head off 😵 please help 🙏🏻 thank you very much in advance
@EduIndiA33
@EduIndiA33 4 жыл бұрын
pure beauty..thanks
@waheedurrehman8581
@waheedurrehman8581 3 жыл бұрын
How can we introduce upper and lower bounds on tuning parameters on this ga (genetic algorithm). Kindly help me.
@oussamahachana4536
@oussamahachana4536 4 жыл бұрын
Thank you a lot...professor!
@davidhargrave778
@davidhargrave778 4 жыл бұрын
Thanks man!
@jackkaplan1471
@jackkaplan1471 4 жыл бұрын
How do you convert your gains values into genetic components?
@arnabpal5459
@arnabpal5459 2 жыл бұрын
Excellent informative lecture, sir is it possible to imply the idea to higher-order state space model?
@sti302man
@sti302man 3 жыл бұрын
Thank you. 👍
@lakshyachaplot8055
@lakshyachaplot8055 Жыл бұрын
At 6:18 - "High pass filter." Shouldn't it be a low pass filter as the 1/(1+0.001s) term is attenuating high frequencies?
@mohammadsajjadi1433
@mohammadsajjadi1433 3 жыл бұрын
Excellent dear. I wanted to know how can we tune 2 control inputs ( for example u1 and u2) in order to minimize a cost function the Dynamic system of which is Nonlinear. Sadly, we can not derive the Closed loop transfer function. Can You guide me with that please?. I want to do this with Genetic Algorithm.
@mohamedabbas7861
@mohamedabbas7861 3 жыл бұрын
Thanks for the extensive explanation and I have an inquiry in this regard. Can we use this algorithm in the state space (in terms of q and q_dot)? you have mentioned that the transfer function is a function of (s) in the frequency domain. Then what happened if we have a model based controller and we want to tune its parameters??
@utkarshshukla2340
@utkarshshukla2340 3 жыл бұрын
Hello sir, I was working cardiac pacemaker, Can this techniques can be used over there since pacemakers are planted externally , could this technique is practically feasible w.r.t to computations
@karananumala1846
@karananumala1846 4 жыл бұрын
Hi steve. I just want to know that, is there any boards that will support the database with the PID controller? If exists, could you please help me in knowing the boards. Thank you steve for ur very useful videos.❤❤😍🧡
@achm3dz
@achm3dz 4 жыл бұрын
@8:05, line 11 should be u=lsim(CTRLtf,1-y,t). am I right?
@indramal
@indramal 4 жыл бұрын
yeah, I also have doubt of it
@rezathr8968
@rezathr8968 4 жыл бұрын
No. The closed loop system is simulated on line 8 by giving it a step input (yd =1), and the output y is recorded. In order to get the controller output (u), you simulate the controller transfer function K directly with its own input "yd- y" which is (1-y). However, you could also simulate CTRLtf with a STEP input using "step(CTRLtf,t)" and get the same results.
@manusego
@manusego 4 жыл бұрын
Excellent job! 👏 Is the script available to download anywhere? Thanks in advance👍
@Eigensteve
@Eigensteve 4 жыл бұрын
Thanks! All code available at databookuw.com
@manusego
@manusego 4 жыл бұрын
@@Eigensteve Lot of thanks!👏👍👋
@myamoi9755
@myamoi9755 2 жыл бұрын
Thanks Plz can I use the same things in the code with a discrete PID controller ?
@techzila5379
@techzila5379 4 жыл бұрын
Sir superawsome vedio....can u please tell me also the MOGA multiobjeective genetic algorithm in MATLAB ?
@alex.ander.bmblbn
@alex.ander.bmblbn 3 жыл бұрын
7:29 shouldnt line 10 be CTRLtf = (K*G)/(1+K*G) ?
@ankitchatterjee5343
@ankitchatterjee5343 4 жыл бұрын
Sir can you provide a cost function that penalises on the maximum value of state or input?
@Eigensteve
@Eigensteve 4 жыл бұрын
In general, I don't see why not. Genetic algorithms can handle all kinds of strange, non-convex and non-smooth cost functions. Although this might make the optimization a bit more difficult. Model predictive control is really good for these types of hard constraints though.
@ankitchatterjee5343
@ankitchatterjee5343 4 жыл бұрын
@@Eigensteve Sir apart from the constraint used here can we include an another constraint on u simultaneously? If yes then how?
@lamrin1
@lamrin1 3 жыл бұрын
sir ho to apply genetic algorithm for a simulink model for PID controller implemented in a boost converter
@italoprdr
@italoprdr 2 жыл бұрын
How to define the bounds of PID?
@awanlis_fams
@awanlis_fams 4 жыл бұрын
hey, im new to MATLAB so i just wanna try this code that you write... but after i run this code, it's error and it said that error in using save, error in myfun, error in gaoutput and many more. can you explain what happen please. thanks
@nadirkheloufi1245
@nadirkheloufi1245 4 жыл бұрын
Is it the same for fractional order pid ??
@salahokba6837
@salahokba6837 3 жыл бұрын
DEAR did you find Any anserwers or not yet
@boardanimoplaycorner989
@boardanimoplaycorner989 Жыл бұрын
Where should I get this code.i have to do project
@aaaaa6304
@aaaaa6304 Жыл бұрын
Have anyone try it with MIMO( multiple input multiple output) system?
@ThongNguyen-gy4ng
@ThongNguyen-gy4ng 3 жыл бұрын
can you tell me where can i get the code
@oliviamj15
@oliviamj15 3 жыл бұрын
is the code still available?
@upamadas1172
@upamadas1172 4 жыл бұрын
can i have the matlab code of this
@Eigensteve
@Eigensteve 4 жыл бұрын
Certainly. All code is available at databookuw.com under the CODE.zip link
@m.izzulfadhok2797
@m.izzulfadhok2797 2 жыл бұрын
👍👍
@rezah336
@rezah336 Ай бұрын
he didnt show the control signal and there is no noise added, not very good video also if you only have 3 parameters you can just loop through them with 3 loops, it would give similar results
PID Control Basics in 10 Minutes
14:21
This is Automation
Рет қаралды 45 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 27 МЛН
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
Machine Learning Control: Genetic Algorithms
13:59
Steve Brunton
Рет қаралды 49 М.
PID Balance+Ball | full explanation & tuning
13:13
Electronoobs
Рет қаралды 746 М.
Controlling Self Driving Cars
4:41
AerospaceControlsLab
Рет қаралды 508 М.
Machine Learning Control: Overview
10:05
Steve Brunton
Рет қаралды 50 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 312 М.
Empirical PID gain tuning (Kevin Lynch)
7:08
Northwestern Robotics
Рет қаралды 160 М.
What are Genetic Algorithms?
12:13
argonaut
Рет қаралды 47 М.
Machine Learning Control: Genetic Programming
12:06
Steve Brunton
Рет қаралды 39 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 27 МЛН