Using 'connect' command to simplify MIMO model

6 次查看(过去 30 天)
Consider the 3x3 MIMO model P_sys (see attachment for state space model) with inputs and outputs as shown:
T_e_to_omega_p.png
K is a PI controller that is used to stabilize the third output,i.e., loop 1 is closed first.
I wish to include the dynamics of the controller K in the reduced 2x2 MIMO model with inputs , and outputs ,ν
Please confirm if I have used the command connect properly in the code as follows:
load P_sys.mat
s = tf('s')
k_p = 1;
k_i = 18.8496;
K = k_p + k_i/s;
K.u = 'e_omega';
K.y = 'T_e';
Sum = sumblk('e_omega = omega_p_ref - \omega_p');
T = connect(P_sys,K,Sum,{'I_1','I_2','omega_p_ref'},{'r_g','\nu'});
I understand that T is now a 3x2 system, but if I simply ignore the input 'omega_p_ref', I end up with a 2x2 system
Someone who has experience of using this command, please confirm if what I have done is correct.
Thanks a bunch!
PS: For your reference, the structure of the plant P is:
P_sys.Inputname = {'I_1','I_2','T_e'};
P_sys.Outputname = {'r_g','\nu','\omega_p'};
P_sys.Statename = {'r_g','\nu','p_p','p_s','\omega_p'};

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Model Predictive Control Toolbox 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by