Repository navigation
Stabilize Broyden inverse-Jacobian initialization - #1185
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
This was referenced Aug 20, 2026
Member
|
We should just skip this test with that Broyden since it's not numerically stable. |
Member
Author
|
Agreed. The Linux convergence and macOS failure demonstrate that this Broyden/problem pair is machine-dependent, so changing the inverse-Jacobian solver policy is broader than warranted. I’m closing this source-change proposal and replacing it with the narrow Wood / true-Jacobian Broyden test exclusion. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Use
LinearSolve.LUFactorization()explicitly when inverse-Jacobian initialization solvesA * X = Ifor strided BLAS matrices. The LinearSolve 5.7 GenericLU kernel changed the floating-point trajectory of true-Jacobian Broyden and made the Wood problem fail deterministically on macOS aarch64; selecting the public LAPACK-backed LU algorithm restores a stable solver choice instead of inheriting changes in LinearSolve's default heuristic.If LU reports a singular factorization, the LinearSolve extension explicitly performs the existing pivoted-QR least-squares rescue, preserving finite generalized-inverse behavior. NonlinearSolveBase is bumped from 2.46.0 to 2.46.1.
Ignore this PR until reviewed by @ChrisRackauckas.
Tracking issue: #1158
Failing before
The new assertion is part of the existing
NonlinearSolveBaseCore workspace test. On unfixed current master with LinearSolve 5.12.0, the default GenericLU result differs from explicit LU for the Wood Jacobian:The maximum entrywise difference is approximately
1.7e-18, which is enough to change the long Broyden trajectory. The dependency boundary is LinearSolve 5.6.0 → 5.7.0, specifically SciML/LinearSolve.jl@6bbb233.Passing after
The identical test passes with the explicit selection:
A focused Linux run of the public Wood problem with the patch returns:
The singular-matrix path remains finite and satisfies the generalized-inverse identity:
Local verification
Runic over all changed Julia files, typos over the diff, and
git diff --checkpassed.macOS verification boundary
Linux does not reproduce the failing Wood endpoint: both the GenericLU and explicit-LU trajectories converge there. The three source-triggered macOS aarch64 Core jobs are the decisive validation and currently fail on unfixed/default initialization:
I am not claiming the macOS regression fixed until this PR's corresponding jobs pass.
Not verified locally
macOS aarch64, GPU groups, downstream packages, and the Julia version matrix were not run locally. No docs build was run because this changes no public API, docstring, or documentation.