Integrators Configuration
The configs module provides configuration classes for numerical integration.
Configuration Classes
- class hiten.algorithms.integrators.configs._EventConfig[source]
Bases:
object
Configuration for a scalar event function g(t, y).
- Parameters:
direction (int, default 0) – Crossing direction to detect: - 0: any sign change (g0 * g1 <= 0) - +1: only increasing crossings (g0 <= 0 and g1 >= 0) - -1: only decreasing crossings (g0 >= 0 and g1 <= 0)
terminal (bool, default True) – When True, integration should stop at the first event.
xtol (float, default 1e-12) – Absolute time tolerance for in-step event refinement.
gtol (float, default 1e-12) – Absolute function tolerance: stop refinement when |g| <= gtol.