Machine Learning Control: Tuning a PID Controller with Genetic Algorithms

Поделиться
HTML-код
  • Опубликовано: 9 июн 2018
  • 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.com/us/book/9783...
    Closed-Loop Turbulence Control: Progress and Challenges
    S. L. Brunton and B. R. Noack
    appliedmechanicsreviews.asmedi...
    Code: faculty.washington.edu/sbrunton/DataDrivenControl.zip
    www.eigensteve.com/
    This video was produced at the University of Washington
  • НаукаНаука

Комментарии • 46

  • @alanzom1503
    @alanzom1503 2 года назад +3

    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.

  • @tianyuliu6454
    @tianyuliu6454 3 года назад +1

    very clear illustration! huge respect!

  • @rubenarmandofigueroafuentes
    @rubenarmandofigueroafuentes 15 дней назад

    this was a great video steve, appreciate it a ton!

  • @NobixLee
    @NobixLee 4 года назад +2

    Excellent work

  • @parminder25
    @parminder25 4 года назад +2

    Excellent work...

  • @EduIndiA33
    @EduIndiA33 4 года назад +1

    pure beauty..thanks

  • @oussamahachana4536
    @oussamahachana4536 4 года назад

    Thank you a lot...professor!

  • @matzelwow
    @matzelwow 4 года назад +2

    Holy shit, that was crazy, i never heard of some self tuning PID like this! Amazing!!

  • @davidhargrave778
    @davidhargrave778 4 года назад +1

    Thanks man!

  • @DadaDawn
    @DadaDawn 3 года назад +8

    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

  • @sti302man
    @sti302man 3 года назад

    Thank you. 👍

  • @waheedurrehman8581
    @waheedurrehman8581 3 года назад +4

    How can we introduce upper and lower bounds on tuning parameters on this ga (genetic algorithm). Kindly help me.

  • @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??

  • @arnabpal5459
    @arnabpal5459 2 года назад

    Excellent informative lecture, sir is it possible to imply the idea to higher-order state space model?

  • @jackkaplan1471
    @jackkaplan1471 4 года назад +3

    How do you convert your gains values into genetic components?

  • @utkarshshukla2340
    @utkarshshukla2340 3 года назад +1

    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

  • @ginebro1930
    @ginebro1930 4 года назад +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 года назад +1

      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?

  • @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.

  • @karananumala1846
    @karananumala1846 3 года назад

    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.❤❤😍🧡

  • @lamrin1
    @lamrin1 3 года назад

    sir ho to apply genetic algorithm for a simulink model for PID controller implemented in a boost converter

  • @myamoi9755
    @myamoi9755 2 года назад

    Thanks
    Plz can I use the same things in the code with a discrete PID controller ?

  • @ooohanful
    @ooohanful 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

  • @techzila5379
    @techzila5379 3 года назад

    Sir superawsome vedio....can u please tell me also the MOGA multiobjeective genetic algorithm in MATLAB ?

  • @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?

  • @alex.ander.bmblbn
    @alex.ander.bmblbn 3 года назад

    7:29 shouldnt line 10 be CTRLtf = (K*G)/(1+K*G) ?

  • @ThongNguyen-gy4ng
    @ThongNguyen-gy4ng 3 года назад

    can you tell me where can i get the code

  • @manusego
    @manusego 4 года назад +3

    Excellent job! 👏 Is the script available to download anywhere?
    Thanks in advance👍

    • @Eigensteve
      @Eigensteve  4 года назад +3

      Thanks! All code available at databookuw.com

    • @manusego
      @manusego 4 года назад

      @@Eigensteve Lot of thanks!👏👍👋

  • @italoprdr
    @italoprdr 2 года назад

    How to define the bounds of PID?

  • @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?

  • @achm3dz
    @achm3dz 4 года назад +3

    @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 года назад +3

      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.

  • @oliviamj15
    @oliviamj15 3 года назад

    is the code still available?

  • @ankitchatterjee5343
    @ankitchatterjee5343 4 года назад +2

    Sir can you provide a cost function that penalises on the maximum value of state or input?

    • @Eigensteve
      @Eigensteve  4 года назад +1

      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?

  • @m.izzulfadhok2797
    @m.izzulfadhok2797 2 года назад

    👍👍

  • @nadirkheloufi1245
    @nadirkheloufi1245 4 года назад +1

    Is it the same for fractional order pid ??

    • @salahokba6837
      @salahokba6837 3 года назад

      DEAR did you find Any anserwers or not yet

  • @upamadas1172
    @upamadas1172 4 года назад +1

    can i have the matlab code of this

    • @Eigensteve
      @Eigensteve  4 года назад +1

      Certainly. All code is available at databookuw.com under the CODE.zip link