enhanced_lsoda_method

Function enhanced_lsoda_method 

Source
pub fn enhanced_lsoda_method<F, Func>(
    f: Func,
    t_span: [F; 2],
    y0: Array1<F>,
    opts: ODEOptions<F>,
) -> IntegrateResult<ODEResult<F>>
where F: IntegrateFloat, Func: Fn(F, ArrayView1<'_, F>) -> Array1<F>,
Expand description

Solve ODE using enhanced LSODA method with improved stiffness detection

This enhanced LSODA method features:

  • More sophisticated stiffness detection algorithms
  • Improved method switching logic
  • Better Jacobian handling and reuse
  • More efficient linear system solving
  • Comprehensive diagnostics and statistics

The method automatically switches between Adams methods (explicit, non-stiff) and BDF methods (implicit, stiff) based on detected stiffness characteristics.