TL;DR
This paper introduces a new, fully adaptive Radau IIA method for solving stiff ordinary differential equations (ODEs) with high accuracy. By leveraging Julia's capabilities, this implementation can dynamically derive any order Radau tableau on-the-fly and to arbitrary precision, overcoming limitations of previous fixed-order, double-precision implementations. The new method demonstrates state-of-the-art performance, offering significant speedups over existing solvers, especially at low error tolerances.
What Problem Does This Paper Address?
Solving stiff ordinary differential equations (ODEs) is crucial in many scientific and engineering fields, from astrodynamics to pharmacometrics. Stiff ODEs are characterized by vastly different time scales, making them computationally challenging. High-accuracy solutions are often required, particularly in areas like pharmacometrics where accurate gradients are needed for robust fitting schemes. While high-order methods generally offer better efficiency for high accuracy, they face significant challenges with stiff systems. Traditional implicit methods like BDF and Rosenbrock-Wanner are often limited to order 5 due to stability concerns. Radau IIA methods, known for their A-stability and ability to achieve higher orders (up to 2s-1 for s stages), have been a strong contender. However, the popular Fortran implementation by Hairer, while groundbreaking, was limited to fixed orders (5th, 9th, 13th) and double precision, restricting its generality and ability to leverage modern hardware. This paper aims to overcome these limitations by creating a flexible, adaptive, and high-performance Radau IIA solver.
Methods
The core of this work is a novel implementation of an adaptive-order, adaptive-time Radau IIA method in Julia. Key methodological advancements include:
- On-the-fly Tableau Generation: Unlike previous implementations that relied on pre-computed tableaus for specific orders, this method can derive the coefficients for Radau IIA embedded tableaus for any order and any user-specified precision. This is achieved by directly using the underlying mathematical definitions of Radau quadrature formulas.
- Arbitrary Precision Arithmetic: The use of Julia's arbitrary precision capabilities allows for calculations to be performed at user-defined precisions, crucial for achieving very low error tolerances.
- Optimized Linear Algebra: The implementation incorporates an eigenvalue decomposition trick, similar to Hairer's original work, to transform the Jacobian matrix. This results in a block-diagonal structure, enabling parallelization of LU factorizations and significantly reducing the computational cost of solving the linear systems within the Newton iterations, especially for higher-order methods.
- Adaptive Order Selection: The method employs a heuristic based on the number of Newton iterations required for convergence. If convergence is slow, indicating the solver is near its stability limit, the order is reduced. Conversely, if convergence is fast, the order is increased to improve efficiency. This differs from previous methods that relied on divergence metrics.
- Embedded Method for Error Estimation: A new embedded reducer vector is generated to provide an error estimate, which is then used by the adaptive step-size controller.
Datasets
The paper evaluates its method using several standard stiff ODE test problems from the Julia SciML benchmarks:
- Oregonator
- Robertson
- Hires
- Pollution
These problems are used to generate work-precision diagrams, comparing the performance of the new method against existing solvers. The comparisons are conducted with varying tolerances, including very low tolerances down to $10^{-24}$ using BigFloat precision.
Key Insights and Ideas
- Flexibility is Key: The ability to derive tableaus for any order and precision on-the-fly is a significant departure from fixed-order implementations and unlocks true generality for high-fidelity simulations.
- Hardware Exploitation: The optimized linear algebra, particularly the transformation for block-diagonalization, is crucial for making higher-order Radau methods computationally feasible and competitive on modern hardware.
- Order Adaptivity Matters for Stiff Systems: The adaptive order selection, driven by Newton iteration counts, proves effective in balancing accuracy and computational cost for stiff ODEs, where stability is a primary concern.
- Radau IIA's Enduring Strength: Despite advancements in other methods, Radau IIA methods, when implemented efficiently and adaptively, remain state-of-the-art for solving stiff ODEs at very low error tolerances.
Key Results
- Speedup over Fortran Radau: The new Julia implementation is approximately 2x faster than the classic Fortran implementation of Radau across a range of stiff ODEs.
- State-of-the-Art Performance: The adaptive Radau method achieves state-of-the-art performance on several test problems, particularly at low error tolerances.
- 1.5x Speedup over Common Integrators: When low error tolerance is required, the new method shows a 1.5-times speed-up compared to common numerical integrators for stiff ODEs.
- High-Precision Advantage: Comparisons using BigFloat precision highlight the method's superior performance at extremely low tolerances, outperforming other high-order solvers like Rodas5P. The adaptive nature leads to flatter work-precision curves, indicating more consistent efficiency.
Limitations and Future Work
- Limitations: While the paper demonstrates significant improvements, it acknowledges that at high tolerances, other algorithms might outperform Radau methods. The current implementation's performance advantage is most pronounced at low tolerances.
- Future Work: The paper mentions that the newly implemented method is distributed as open-source software, encouraging further development and application. Potential future work could involve exploring further parallelization strategies, investigating the method's performance on a wider array of stiff ODE problems, and potentially extending its capabilities to other classes of differential equations.
Summary updated