src.solver

Functions

solver_ode(k, t_span, m_max, v_e, nu, q, objective)

Solves a system of ordinary differential equations (ODEs) using the specified

Module Contents

src.solver.solver_ode(k, t_span, m_max, v_e, nu, q, objective)

Solves a system of ordinary differential equations (ODEs) using the specified objective function and problem parameters. The solver integrates the system from a given initial state over a specified time span. It employs a Dopri5 solver with a PID-based step size controller to achieve precise numerical results.

Parameters:
  • k (Array-like) – Parameter to be passed as an argument to the ODE system.

  • t_span (Sequence[float]) – Time span over which the ODEs are solved. It must be a sequence containing the initial and final times of integration.

  • m_max (int) – The maximum length used to initialize the state vector for the ODE problem.

  • v_e (float) – Additional argument to be passed into the objective function.

  • nu (float) – Additional argument to be passed into the objective function.

  • q (Array-like) – Additional argument to be passed into the objective function.

  • objective (Callable) – The objective function defining the ODE system. It represents the time derivative of the state vector.

Returns:

The solution of the ODE system, which includes the time-evaluated state vector at specified save points.

Return type:

Array-like