How can I modify the manipulated variable properties in a MPC block in Simulink?
조회 수: 6 (최근 30일)
이전 댓글 표시
I'm developing the MPC controller for ventilator.
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
Plant model consist of 3 inputs and 1 output.
Three inputs are ventilator on/off(manipulated variable), occupancy sch. (measured disturbance 1) and outdoor co2 (measured disturbance 2).
One output is indoor co2 (measured output).
I want to control the ventiltor to only the on/off (0, 1).
I set the minimum and maximum constraints of manipulated variable(vantiltor on/off), It is 0 and 1 respectively.
And I set the max down rate and max up rate. it is -1 and 1 respectively.
However, the calculated result of manipulated variable include values between 0 and 1.
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
How could I fix this problem?
Thanks.
댓글 수: 1
Imaneky
2018년 10월 16일
Hi,
Have you find a solution to your problem?
I am trying to implement an MPC for a bang-bang control output.
Thank you!
답변 (2개)
Ryan G
2012년 10월 16일
I don't know if I would normally use a MPC control for a bang-bang (on/off) control scheme, but then again I'm not really that familiar with MPC.
댓글 수: 0
Azzi Abdelmalek
2012년 10월 16일
편집: Azzi Abdelmalek
2012년 10월 16일
pass your input signal through a zoh (zero order hold) block from simulink/discret. or set your signal source datype to logical
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Plant Specification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!