Skip to content

Add a derivative-free order 1.5 Taylor method for RODEs - #4591

Merged
ChrisRackauckas merged 5 commits into
SciML:masterfrom
singhharsh1708:rode-ito-taylor-15
Sep 27, 2026
Merged

ChrisRackauckas merged 5 commits into
SciML:masterfrom
singhharsh1708:rode-ito-taylor-15

Conversation

@singhharsh1708

@singhharsh1708 singhharsh1708 commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

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 of f, 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 f from the mismatch between f(u) and f(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 than RandomEM. 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 than RandomEM, at unit amplitude 1.74 to 1.90 against RandomEM's 0.93 to 0.99 with errors 26 to 33 times smaller, and with no noise in f it is Heun.

The method needs a NoiseGrid resolved 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 live NoiseProcess overwrites curW and dW. 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 in W at frequency a the rate appears once a^2 * dt drops below about 1. At a = 20 it measures 1.02 over n = 16..256 and 1.85 over n = 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?

DiffEqNoiseProcess becomes 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 in ode_cache_tests.jl:50 with cannot resize array with shared data from a Rodas5 resize!; 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.

@singhharsh1708
singhharsh1708 marked this pull request as ready for review September 21, 2026 08:17
@ChrisRackauckas

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

The code review of this PR at 765b90f found nothing blocking. The merge bar is "no test regressions", though, and these checks fail here but pass on the default branch's recent runs. They were re-run once, to rule out a flaky job:

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)
Conversation: https://claude.ai/code/session_01LvC5dTuxGscm48yhAw8Ssn

@ChrisRackauckas
ChrisRackauckas merged commit 8eb7090 into SciML:master Sep 27, 2026
297 of 309 checks passed
@ChrisRackauckas

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

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
Conversation: https://claude.ai/code/session_01LvC5dTuxGscm48yhAw8Ssn

ChrisRackauckas referenced this pull request Sep 29, 2026
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants