📄 cola4_lin.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -