# Runge Kutta method to solve chapman kolmogorov differential equations

10 views (last 30 days)
fakhar jahan on 24 Jul 2019
Answered: Le Duc Long on 29 Jun 2020
I need to solve these 2 equations by runge kutta 4th order method. Could anyone help me out to imelemnt these equation without using ode45 function. Please assume any initial conditions of your choice.
Equation (3.7) states that the probability of being in state 0 with no one in the system a very short time from now is equal to (i) the probability that the system is in state 0 now and no customer arrives plus (ii) the probability that there is one customer in the system and that person finishes his or her service during the very short time. Equation (3.8) states that the probability that the system is in state i a very short time from now is equal to the sum of (i) the probability that the system is in state i-l now and there is one arrival during the very short time, (ii) the probability that the system is in state i right now and there are no arrivals or service completions during the short interval of time, and (iii) the probability that the system is in state i + 1 right now and there is one service completion during the short interval.

Show 2 older comments
darova on 24 Jul 2019
What will be changed if i=2?
Torsten on 25 Jul 2019
And what is P_(i+1) since you only have equations for P_0,...,P_i ?
Maybe P_(i+1) = 0 ?
fakhar jahan on 25 Jul 2019
In my attempt, I have kept i=1, so (Pi+1=P2). Pi+1 is the probability for the next increment in "i" .In my attempt I have taken its initial value for P2=0. Although, I am not hundred precent sure that how it will be computed in these equations and htrough runge kutta method.
mu (M) and lambda (L) could be treated as constant for the ease of this computation. Please only take P indexed with respect to i.

fakhar jahan on 24 Jul 2019
i=2 will change the P0 to P1, P1 to P2 and P2 to P3 in the equation 3.8. As per my understanding i-1 is dependent on previous iteration of "i".

#### 1 Comment

darova on 24 Jul 2019
Is it possible to use loop?

fakhar jahan on 24 Jul 2019
Loop for "i" values? I think yes.

Le Duc Long on 29 Jun 2020
Hi Fakhar Jahan,
This is Kolmogorov differential equations in theory queue. I am also concerned about Your problem? Do you have the code to solve this system of equations? You can share me at the address: lelongbg@gmail.com.
Thank you so much!
Best Regards!