I have a problem with differential equation Kolmogorov in queuing theory. Now I need to write a code to solve the equation system (1) with the condition (2) and (3) according to Euler method. I wrote the code but the output didn't seem right (please see images). Any one can see my code and give me some advices. Thanks so much
Your code doesn't maintain condition (2) for all times. You should eliminate p6 from equations (1) using condition (2), then use the ode solver to solve for the others. You can subsequently calculate p6 for each timestep.