Repository navigation
Add a derivative-free order 1.5 Taylor method for RODEs - #4591
Conversation
The code review of this PR at
Could you check whether the change causes these? Once they pass, or turn out to be unrelated flakes, this PR can be merged. 🤖 Posted by an AI agent — harness: Claude Code · model: claude-opus-5-5[1m] (fleet master) |
Follow-up to the regression note above: a closer look at the failing jobs' logs showed they are unrelated to this PR. They are flakes or failures that also occur on other PRs and on the default branch. Merged. Thanks! 🤖 Posted by an AI agent — harness: Claude Code · model: claude-opus-5-5[1m] (fleet master); failure analysis by Codex CLI / gpt-6-astra |
* Bump DiffEqBase to 7.21.3 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqBDF to 2.4.12 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqSDIRK to 2.9.7 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqRosenbrock to 2.7.5 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqLowOrderRK to 2.2.6 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqTsit5 to 2.1.5 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqVerner to 2.4.2 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqSymplecticRK to 2.2.3 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Adds
RandomTaylor15, a derivative-free order 1.5 method for RODEs driven by a Wiener path, from Asai's thesis (Goethe University Frankfurt, 2016) equation 3.24. The W-derivatives become finite differences off, so a step costs four evaluations and no derivatives.It departs from 3.24 in two places, both measured. The integrals of the path over the step are taken from the supplied path instead of from their Brownian means, and the drift is advanced by a Heun step with W held at its left value instead of through the second difference. 3.24 picks up the drift term
(dt^2/2) f_u ffrom the mismatch betweenf(u)andf(u + dt f)inside its second difference, scaled by the mean of the double integral, and that mean is only right for unit diffusion. On a Brownian path of amplitude 0.2 or 3 the equation measures order 1.0 to 1.1, no better thanRandomEM. With the Heun step the drift term is exact: at amplitude 0.2 the method measures 1.89 to 1.99 over four seeds with errors about 100 times smaller thanRandomEM, at unit amplitude 1.74 to 1.90 againstRandomEM's 0.93 to 0.99 with errors 26 to 33 times smaller, and with no noise infit is Heun.The method needs a
NoiseGridresolved more finely than the solver steps. Taking the integral from the exactly sampled Gaussian pair, as the SRA and SRI methods take theirs, measures 0.93: the pair is right in law but is not a functional of the path the user gave. Reading the path mid-step is only safe for a stored grid, since querying a liveNoiseProcessoverwritescurWanddW. A grid with no point inside the step is accepted but warned about, because the integrals then collapse to the endpoint rule.The finite differences perturb the noise argument by
sqrt(dt), so for a right-hand side oscillating inWat frequencyathe rate appears oncea^2 * dtdrops below about 1. Ata = 20it measures 1.02 overn = 16..256and 1.85 overn = 256..2048.Tests cover the order at two amplitudes, the Heun limit, in-place against out-of-place, the step integrals against their closed forms on a grid the steps do not line up with, and backward integration. Each assertion was watched failing against a deliberate defect; putting the drift back into the second difference fails both the amplitude test and the Heun limit.
Draft question, still open. Sub-step noise access is what every RODE method above order 1 needs, the averaged schemes included, and today the only safe source is a grid the user supplied. Should that live in DiffEqNoiseProcess as a non-mutating query, or stay solver side as here?
DiffEqNoiseProcessbecomes a direct dependency of StochasticDiffEqRODE.The two QA lanes error on
JETConfigError: Given unexpected configuration: target_defined_modules = true, which is not from this branch: #4590 fails the StochasticDiffEqRODE QA lane the same way, and the same error hits StochasticDiffEqCore, where this branch changes one README line. The two downgrade lanes are red on master. Integrators_II on lts failed once inode_cache_tests.jl:50withcannot resize array with shared datafrom a Rodas5resize!; nothing in that group loads the RODE code, and it passed on this branch's previous commit and on the last eight master commits.AI Disclosure: Claude assisted with this change.