cola4_lin.m

来自「国外经典书籍MULTIVARIABLE FEEDBACK CONTROL-多变量」· M 代码 · 共 47 行

M
47
字号
function [f,g]=cola4_lin(X,u)%% cola4_lin - This function designed for use with 'cola_linearize.m' to%        create a linear model of a distillation column.%        The number '4' denotes that there are 4 inputs (L,V,D,B)%        plus the 2 disturbances. %        For more details about the column model see: colamod.m%%     x - states (liquid composition and liquid hold up)%     u - inputs (reflux LT, boilup VB, distillate D, bottoms B) and%          disturbances (feedrate F and feed composition zF)%%  NOTE: Everything here is row vectors rather than columnn vectors%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%NT=41;% Splitting the statesx=X(1:NT);                          % Liquid compositionM=X(NT+1:2*NT);                     % Liquid hold up% InputsU(1)=u(1); % LU(2)=u(2); % VU(3)=u(3); % DU(4)=u(4); % BU(5)=u(5); % FU(6)=u(6); % zF% Another possible disturbance is the fraction of liquid in the feed,% but it is not used here:qF=1.0; U(7)=qF;% This variable is not usedt=0;xprime=colamod(t,X',U');% Outputf=xprime';g=[x(NT),x(1),M(NT),M(1)];

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?