Skip to content

NonlinearSolveAlg: modified-Newton for nlstep/DAE/OOP paths (#3696) - #3703

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:nlsolvealg-wreuse-nlstep
Jun 9, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:nlsolvealg-wreuse-nlstep

Conversation

@singhharsh1708

@singhharsh1708 singhharsh1708 commented May 30, 2026 •

Copy link
Copy Markdown
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@singhharsh1708
singhharsh1708 marked this pull request as draft May 30, 2026 19:03
@singhharsh1708
singhharsh1708 marked this pull request as ready for review June 5, 2026 07:53
@singhharsh1708
singhharsh1708 force-pushed the nlsolvealg-wreuse-nlstep branch from 5e52611 to 55af2f4 Compare June 5, 2026 07:56
@singhharsh1708

Copy link
Copy Markdown
Member Author

@ChrisRackauckas re-parenthesizing the recompute_jacobian gate so modified-Newton (factorization reuse across Newton iters) extends to the cache.W === nothing paths (nlstep, DAE, OOP).
MTK Robertson with nlstep=true: njacs −50% on FBDF/TRBDF2/KenCarp4 (240→120, 315→158, 438→207). nnonliniter +1–11%.
Partial close on #3696 — full cross-step W-reuse for nlstep still blocked on MTK #4570.

@ChrisRackauckas
ChrisRackauckas merged commit f86cdc8 into SciML:master Jun 9, 2026
160 of 184 checks passed
@ChrisRackauckas

Copy link
Copy Markdown
Member

That's a big win from a small change 😆

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