Skip to content

[FEATURE] component/variation-level tolerance specification #215

Description

@alangfor

Feature Request

Is your feature request related to a problem?
Propagation of higher-order variations can drive the integrator to reduce its time-step in order to satisfy a uniform numerical tolerance, overshadowing the baseline state’s needs.

Describe the solution you’d like
The ability to specify unique integration tolerances for different components or variation orders. For example, one might want a tighter tolerance (e.g., 1e-14) for the baseline state but a looser tolerance (e.g., 1e-8) for first-order variations.

Describe alternatives you’ve considered
Lowering the overall tolerance lets the integrator take larger steps for the variational equations but reduces the accuracy of the baseline state.

Additional context
SciPy’s solve_ivp allows per-component tolerances (via an array for atol), but this may not map easily to Heyoka. A dedicated approach in hy.var_ode_sys could allow setting different tolerances across variation levels.

Thank you for considering this feature!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions