dynamo.vf.gen_fixed_points

dynamo.vf.gen_fixed_points(func, auto_func, dim_range, RandNum, EqNum, reverse=False, grid_num=50, x_ini=None)[source]

Calculate the fixed points of (learned) vector field function . Classify the fixed points into classes of stable and saddle points based on the eigenvalue of the Jacobian on the point.

Parameters:
  • func (Callable) – The function of the (learned) vector field function that are required to fixed points for

  • auto_func (Optional[ndarray]) – The function that is written with autograd of the same ODE equations that is used to calculate the Jacobian matrix. If auto_func is set to be None, Jacobian is calculated through the fjac, r returned from fsolve.

  • dim_range (List) – The range of variables in the ODE equations.

  • RandNum (int) – The number of random initial points to sample.

  • EqNum (int) – The number of equations (dimension) of the system.

  • reverse (bool) – Whether to reverse the sign (direction) of vector field (VF).

  • grid_num (int) – The number of grids on each dimension, only used when the EqNum is 2 and x_ini is None.

  • x_ini (Optional[ndarray]) – The user provided initial points that is used to find the fixed points

Returns:

A matrix consists of the coordinates of the stable steady state saddle: A matrix consists of the coordinates of the unstable steady state

Return type:

stable