Matematisk Model for Mavesækkens Tømning - Danmarks Tekniske ...
Matematisk Model for Mavesækkens Tømning - Danmarks Tekniske ...
Matematisk Model for Mavesækkens Tømning - Danmarks Tekniske ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
105<br />
123 Q2dot = Q12 − Q21 − Q2out; % Compartment 2 [mmol/min]<br />
124<br />
125 % =========================================================================<br />
126 % Insulin subsystem<br />
127 % =========================================================================<br />
128 x1dot = −ka1*x1+kb1*I; % Insulin influence on transport/distubtion<br />
129 x2dot = −ka2*x2+kb2*I; % Insulin influence on disposal in adipose tissue<br />
130 x3dot = −ka3*x3+kb3*I; % Insulin influence on EGP in liver<br />
131<br />
132 % =========================================================================<br />
133 % Insulin secretion<br />
134 % =========================================================================<br />
135 S = gamma*Ipo; % Insulin secretion [mU/min]<br />
136<br />
137 Idot = UI/VI − ke*I + S/VI; % Change in plasma insulin concentration<br />
138 % [(mU/L)/min]<br />
139<br />
140 % Insulin uptake in portal vein<br />
141 if Q1dot > 0<br />
142 Spo = Y + Sb + K*Q1dot; % [mU/min]<br />
143 else<br />
144 Spo = Y + Sb; % [mU/min]<br />
145 end<br />
146 Ipodot = −S + Spo; % Change in insulin amount in portal vein [mU/min]<br />
147<br />
148 if beta*(G−Gss) ≥ −Sb<br />
149 Ydot = −alpha*(Y − beta*(G−Gss)); % [(mU/min)/min]<br />
150 else<br />
151 Ydot = −alpha*(Y + Sb); % [(mU/min)/min]<br />
152 end<br />
153<br />
154 %% Return derivatives<br />
155 xdot = [D1dot; D2dot; Q1dot; Q2dot; Idot; x1dot; x2dot; x3dot; Ipodot;...<br />
156 Ydot];<br />
Listing D.3: HovorkaBasalState2Pancreas.m<br />
1 function [Gss,Iss,xss] = HovorkaBasalState2Pancreas(u,ug,d,par,xinit)<br />
2 % HOVORKABASALSTATE Computes the basal state of the Hovorka model<br />
3 %<br />
4 % The basal state is identical to the steady state. Given the inputs<br />
5 %<br />
6 % Syntax: [Gss,Iss,xss] = HovorkaBasalState2Pancreas(u,ug,d,par,xinit)<br />
7 %<br />
8 % Gss : [mmol/L] Basal plasma glucose concentration (steady state)<br />
9 % Iss : [mU/L] Basal plasma insulin concentration (steady state)<br />
10 % xss : Basal states in the Hovorka model (steady state)<br />
11 %<br />
12 % u : [mU/min] basal insulin injection<br />
13 % ug : [g/min] basal glucose injection<br />
14 % d : [g/min] basal oral food intake (usually zero)<br />
15 % par : Parameters (see HovorkaParametersPancreas.m)<br />
16 % xinit : initial guess on the basal states (optional)<br />
17