Step Input in "par" port in LPV block

1 view (last 30 days)
Joana Urbano
Joana Urbano on 16 Oct 2024
Commented: Swastik Sarkar on 24 Oct 2024
Hello,
I am designing a wind turbine controller in simulink. I am using the "Adaptive MPC" block. To adjust the internal MPC model, I am using a LPV block that has several SS models of the wind turbine.
These models correspond to several wind speed values, so the LPV input port "par" is the wind speed.
This setup works very well with "normal" (i.e. varying) wind speed inputs. However, I need to test my controller with a step wind input. When I use a step input in "par", the LPV block is not adjusting the MPC internal model.
I am using simulink and matlab version 2024b. I saw this in matlab site: "The LPV System block now ignores singleton dimension and constant parameters in the sampling grid of the input model array. Therefore, you must not feed the parameters, that is, the fields of the SamplingGrid structure with constant values to the par port of the block. Use only the varying fields with this port." Since I have a step, the input to par changes (is not always constant). I don't understand why it is not working and I find it weird that the LPV block does not work with step inputs. I already tried filtering the step input or adding noise to it. I also tried using ramp inputs to par instead of the step, but none of this works.
Can someone give me any ideas in how to tackle this problem?
Thanks a lot!
Best regards,
Joana
  1 Comment
Swastik Sarkar
Swastik Sarkar on 24 Oct 2024
Is it possible to share the model to help with a better understanding of the problem?

Sign in to comment.

Answers (0)

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!