MATLAB MPC toolbox setting constraints on unmeasured outputs

조회 수: 1 (최근 30일)
Ama Nesciri
Ama Nesciri 2020년 3월 9일
편집: Ama Nesciri 2020년 3월 9일
I am trying to control a fourth order plant using MPC with constraints on my input, my measured output and the unmeasured states. The problem I encounter is that I cannot define the three unmeasured 'outputs' (the three other states) I have.
plantss.OutputGroup.UO = 3; % also tried plantss.OutputGroup.UV = 3;
returns an error. I also wonder how I would have to specify to which state a specific constraint belongs.
My code:
ref = 1;
Ts = 1;
plant = tf([0.5],[200 310 143 16.4 0.5]);
plantss = ss(plant);
plantss.InputGroup.MV = 1;
plantss.OutputGroup.MO = 1;
plantss.OutputGroup.UO = 3;
MV = struct('Min',-10,'Max',10);
MO = struct('Max',1.05*ref);
p = 20;
m = 3;
MPCobj = mpc(plantss,Ts,p,m,[],MV,MO);
sim(MPCobj,200,ref);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Refinement에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by