# # This file is automatically generated with # the System Biology Format Converter (http://sbfc.sourceforge.net/) # from an SBML file. # # The conversion system has the following limitations: # - You may have to re order some reactions and Assignment Rules definition # - Delays are not taken into account # - You should change the lsode parameters (start, end, steps) to get better results # # # The following line is there to be sure that Octave think that this file # is a script and not function file # 1; # # Model name = Tyson1991_CellCycle_2var # # is urn:miriam:biomodels.db:BIOMD0000000006 # is urn:miriam:biomodels.db:MODEL6614715255 # isDescribedBy urn:miriam:pubmed:1831270 # function z=pow(x,y),z=x^y;endfunction function z=root(x,y),z=y^(1/x);endfunction function z = piecewise(varargin) numArgs = nargin; result = 0; foundResult = 0; for k=1:2: numArgs-1 if varargin{k+1} == 1 result = varargin{k}; foundResult = 1; break; endif end if foundResult == 0 result = varargin{numArgs}; endif z = result; endfunction function xdot=f(x,t) # Compartment: id = cell, name = cell, constant compartment_cell=1.0; # Parameter: id = kappa, name = kappa global_par_kappa=0.015; # Parameter: id = k6, name = k6 global_par_k6=1.0; # Parameter: id = k4, name = k4 global_par_k4=180.0; # Parameter: id = k4prime, name = k4prime global_par_k4prime=0.018; # Parameter: id = alpha, name = alpha # rateRule: variable = u x(2) = x(5); # assignmentRule: variable = z x(3)=x(4)-x(2); # rateRule: variable = v x(4) = x(6); # assignmentRule: variable = alpha global_par_alpha=global_par_k4prime/global_par_k4; # Reaction: id = Reaction1 reaction_Reaction1=global_par_kappa; # Reaction: id = Reaction2 reaction_Reaction2=global_par_k6*x(2); # Reaction: id = Reaction3 reaction_Reaction3=global_par_k4*x(3)*(global_par_k4prime/global_par_k4+x(2)^(2)); xdot=zeros(6,1); # rateRule: variable = u xdot(5) = global_par_k4*(x(4)-x(2))*(global_par_alpha+x(2)^(2))-global_par_k6*x(2); # rateRule: variable = v xdot(6) = global_par_kappa-global_par_k6*x(2); # Species: id = EmptySet, name = EmptySet #WARNING speciesID: EmptySet, constant= false , boundaryCondition = true but is not involved in assignmentRule, rateRule or events ! xdot(1) = 0.0; # Species: id = u, name = u, involved in a rule xdot(2) = x(2); # Species: id = z, name = z, involved in a rule xdot(3) = x(3); # Species: id = v, name = v, involved in a rule xdot(4) = x(4); endfunction #Initial conditions vector x0=zeros(6,1); x0(5) = 0.0; x0(6) = 0.0; x0(1) = 1.0; x0(2) = 0.0; x0(3) = 0.0; x0(4) = 0.0; #Creating linespace t=linspace(0,90,100); #Solving equations x=lsode("f",x0,t); #ploting the results plot(t,x);