Dual Tank Level MPC

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ม.ค. 2025

ความคิดเห็น • 10

  • @ABHISHEKSHARMA-rb2lw
    @ABHISHEKSHARMA-rb2lw ปีที่แล้ว +1

    Sir how to make two tank level control on matlab please tell me

    • @apm
      @apm  ปีที่แล้ว

      Please see Special Problem #3 here: apmonitor.com/che436/index.php/Main/CourseHomework

  • @mahikakarkhanis2885
    @mahikakarkhanis2885 2 ปีที่แล้ว +1

    Is this a type of distributed model predictive control?

    • @apm
      @apm  2 ปีที่แล้ว

      No, This isn’t a distributed MPC. However you could make it into two separate MPC applications and have a coordinating application.

  • @damarishamza8663
    @damarishamza8663 3 ปีที่แล้ว

    please do you have a material for this?
    i would love to have it

  • @MikeKay1978
    @MikeKay1978 5 ปีที่แล้ว +1

    Instead of a linear differential equation is it possible to have a non-linear one? I tried using m.Equation(y.dt() == np.sqrt(y)) and it wouldn't accept it.

    • @apm
      @apm  5 ปีที่แล้ว

      Try using the gekko version of sqrt such as m.sqrt(y)

    • @MikeKay1978
      @MikeKay1978 5 ปีที่แล้ว

      @@apm thanks that worked!

  • @alinoman6390
    @alinoman6390 2 ปีที่แล้ว +1

    I have tried to run the MATLAB simulink version of the Dual Tank Level MPC using MATLAB 2019b. However, I got the following errors:
    1- An error occurred while running the simulation and the simulation was terminated
    Caused by:
    Error due to multiple causes.
    The first input argument of the "mpc" command must be an LTI object or a structure of models and offsets.
    Error evaluating MATLAB function in 'Gravity_Drained_Tanks/Triggered Subsystem/Interpreted MATLAB Function'
    2- Error evaluating 'StopFcn' callback of block_diagram 'Gravity_Drained_Tanks'.
    Callback string is 'Plot_and_save'
    Caused by:
    Value must be a 1x2 vector of numeric type in which the second element is larger than the first and may be Inf
    Can you please help me solve this problem ?
    🌹🌹🌹🌹

    • @apm
      @apm  2 ปีที่แล้ว

      You may have a name conflict if you have a package installed that also uses a function named MPC. Try starting the application in the run folder of the application that has mpc.m