Stable state finder
Evolutionary stability analysis is performed with successive forward simulations:
In order to find the equilibrium frequencies of the player types we need to find the attractors of the system which corresponds to the Evolutionarily stable states. The attractors are dependent on the initial frequencies of the player types. Here, the attractors of the system are found by analyzing different sets of initial frequencies. Each arrangement of initial frequencies is used as initial condition and simulated for specified time. If the end frequencies have differed from the initial frequencies than the end frequencies are used as initial conditions for the next simulation. If the end frequencies are the same as the input frequencies than it is concluded that the system has reached to the steady state.