egttools.plotting.simplified.find_roots¶
- find_roots(gradient_function, nb_strategies, nb_initial_random_points=3, atol=1e-07, tol_close_points=0.0001, method='hybr')[source]¶
Searches for the roots of the given differential equation.
- Parameters
gradient_function (Callable[[np.ndarray], np.ndarray]) – function that returns a numpy.ndarray with the gradient of every strategy/type given a current population state.
nb_strategies (int) – number of strategies/types present in the population.
nb_initial_random_points (int) – number of random points to use as initial states for the root function. These are additional to the vertex of the simplex.
atol (float) – tolerance for considering that a point is in the simplex.
tol_close_points (float) – tolerance for considering that two points are equal.
method (str) – one of the options described in
scipy.optimize.root
(see https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.root.html)
- Returns
A list of tuples with the identified roots/stationary points.
- Return type
List[numpy.ndarray]