Expand description
Automatic solver selection.
Provides intelligent method selection based on problem characteristics.
§Usage
use numra_ode::{OdeProblem, auto_solve, SolverOptions};
let problem = OdeProblem::new(
|_t, y: &[f64], dydt: &mut [f64]| { dydt[0] = -y[0]; },
0.0, 1.0, vec![1.0],
);
let options = SolverOptions::default();
let result = auto_solve(&problem, 0.0, 1.0, &[1.0], &options).unwrap();
assert!(result.success);§Selection Strategy
- Non-stiff problems: Uses Tsit5 (efficient, accurate, FSAL)
- Moderately stiff: Uses Esdirk54 (L-stable, good efficiency)
- Very stiff: Uses BDF or Radau5 (high stiffness handling)
- High accuracy: Uses Vern8 (8th order accuracy)
Author: Moussa Leblouba Date: 5 March 2026 Modified: 2 May 2026
Structs§
- Solver
Hints - Solver selection hints.
Enums§
Functions§
- auto_
solve - Convenience function for automatic solving.
- auto_
solve_ with_ hints - Convenience function for automatic solving with hints.