How to solve nonlinear system of equations?
Afficher commentaires plus anciens
How to solve nonlinear system of equations in mathematical epidemiology
S'(t)= A- bS(t)- (cS(t)I(t))/(1+kI(t))
I'(t)= (cS(t)I(t))/1+kI(t)-(d+e+f)I(t)-rI(t)/(1+pI(t))
R'(t)= fI(t)+(rI(t)/1+pI(t))-bR(t)
where A, b, c, d, e, f, k and p are positive constants.
A= 15, b=0.1, c=0.01, e=0.01, f=0.1, r=0.8, p=0.1, k=0.1 another set of values A=12, b=0.1, c=0.01, e=0.01, f=0.1, r=2, p=1, k=0.1 send the mathlab code. thank you
I need code for this request. Please send me a sample code for nonlinear system of equations
3 commentaires
Walter Roberson
le 22 Nov 2017
Could you confirm that bS(t) is b*S(t), not a separate function?
Rajasekar S P
le 22 Nov 2017
Walter Roberson
le 22 Nov 2017
I think you might not have written I' and R' correctly. You have divisions by 1, then add something. I suspect those should be divisions by (1 plus something)
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 22 Nov 2017
Provided that I was correct that the division should not be by 1, that the actual equations are:
[diff(S(t), t) = A-b*S(t)-c*S(t)*I_(t)/(1+k*I_(t)),
diff(I_(t), t) = c*S(t)*I_(t)/(1+k*I_(t))-(d+e+f)*I_(t)-r*I_(t)/(1+p*I_(t)),
diff(R(t), t) = f*I_(t)+r*I_(t)/(1+I*p)-b*R(t)]
Then, one of the solutions is
I(t) = 0
R(t) = R(0)*exp(-b*t)
S(t) = a/b + exp(-b*t)*(S(0)-a/b)
In the above, R(0) and S(0) are the boundary conditions at 0 for R and S, which is something you did not mention.
If I(t) might not be identical to 0, then even with specific numeric values, about the best you can get symbolically is a complicated system of relationships about what the various functions would have to look like. When I look at that system of relationships, I think it might even constrain it down to a single time that the relationship is valid.
I think you are probably going to need to supply boundary conditions and do a numeric solution using ode45 or similar.
1 commentaire
Rajasekar S P
le 23 Nov 2017
Catégories
En savoir plus sur Number games dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!