Effacer les filtres
Effacer les filtres

MPC for state space model with constant term

2 vues (au cours des 30 derniers jours)
aurochs
aurochs le 17 Déc 2021
Modifié(e) : aurochs le 17 Déc 2021
I want to design an MPC for a plant with state space model that includes constant term f:
Following suggestions from other answers (Discussion 1, Discussion 2), I tried several methods:
  1. Include unmeasured input disturbance of random step-like model with magnitude f
A = [0 1;-2.4e3 -528];
B = [0 0 0;0.0004 0 -1];
C = eye(3);
D = zeros(2,3);
f = 42.6506;
Ts = 0.2;
plant = ss(A,B,C,D,Ts);
p = 5;
m = p;
mpcobj = mpc(plant,Ts,p,m);
setindist(mpcobj,'model',tf(f,[1 0]));
2. Include an offset of f/B to the MPC's control signal before the plant
A = [0 1;-2.4e3 -528];
B = [0 0;0.0004 0];
C = eye(2);
D = zeros(2,2);
f = 42.6506;
Ts = 0.2;
Offset_time=[0:Ts:30 f/B(2,1) 0];
plant = ss(A,B,C,D,Ts);
p = 5;
m = p;
mpcobj = mpc(plant,Ts,p,m);
However, I did not get the response that I expected. Please advise if what I'm doing are correct. Thank you.

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by