0

I have 2048 master equations, dp/dt = Tj - Ti(p) for 2048 states of a network where p is the probability at a specific time. Initial p of all the states is 1/2048. All the Tj and Ti values are given for all the equations. I need to solve all these master equations using the iterative method until the probability of each state does not change. What approach should I take? I am applying simple iteration using the for loop. What will be the code of the condition to stop the loop of each of the equation differently when their respective values are not changing?

2 Answers 2

1
if abs(old - new) < threshold
    break
end
Sign up to request clarification or add additional context in comments.

Comments

0

The simplest approach can be to check the change in probability in every iteration by subtracting the new probability from the previous one and exiting the loop once this change goes below a threshold.

1 Comment

I will be really glad if you can also write the code for that. This is a really nice approach I thought of it but I am unabe to write a code as I am new to matab. Thanks a lot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.