gemseo.algos.ode.ode_result module#
Result of an ODE problem.
- class ODEResult(times, state_trajectories, n_func_evaluations, n_jac_evaluations, algorithm_has_converged, algorithm_name, algorithm_settings, algorithm_termination_message, jac_wrt_desvar, jac_wrt_initial_state, terminal_event_index, final_state, termination_time)[source]#
Bases:
objectThe result of the resolution of an ODE problem.
In the ODE \(\frac{d\mathbf{s}(t)}{dt}=f(t,\mathbf{s}(t))\), the right-hand side (RHS) function is noted \(f\) and the state variable at time \(t\) is noted \(\mathbf{s}(t)\in\mathbb{R}^d\).
- Parameters:
times (RealArray)
state_trajectories (RealArray)
n_func_evaluations (int)
n_jac_evaluations (int)
algorithm_has_converged (bool)
algorithm_name (str)
algorithm_termination_message (str)
jac_wrt_desvar (RealArray)
jac_wrt_initial_state (RealArray)
terminal_event_index (int | None)
final_state (RealArray)
termination_time (float)
- final_state: RealArray#
The state at the instant of interruption of the integration in time.
If a terminal event occurs, it is the state during such occurrence. Otherwise, it is the state at the final time of integration.
- jac_wrt_desvar: RealArray#
The Jacobian of the final state with respect to the design variables.
- jac_wrt_initial_state: RealArray#
The Jacobian of the final state with respect to the initial state.
- state_trajectories: RealArray#
The states at times_eval \(t_1,\ldots,t_N\).
Shaped as
(d,N)wheredis the state dimension.
- terminal_event_index: int | None#
The index of the event function responsible for the termination of the integration.
If
None, the integration has been performed on the entire time interval without interruption.
- termination_time: float#
The time of interruption of the integration in time.
If a terminal event occurs, it is the time of such occurrence. Otherwise, it is the final time of integration.
- times: RealArray#
The times_eval \(t_1,\ldots,t_N\).