Repository navigation
Stabilize unglobalized bad Broyden steps - #1101
ChrisRackauckas-Claude wants to merge 3 commits into
Conversation
|
Follow-up
Exact downgraded-dependency validation on Julia 1.10.11:
Fresh validation after the commit:
|
|
Follow-up
Local verification after the revision:
Fresh CI is running on |
|
Fresh CI validation for
Thus Brown is fixed on the affected macOS ARM lanes without changing the master expected-broken set or regressing Freudenstein-Roth/Watson. The remaining red Core statuses are unrelated allocation baselines already tracked in #1076. |
|
The remaining QuasiNewton sublibrary QA failure was also confirmed unrelated: clean master reproduces |
Bound oversized bad-Broyden displacements relative to the current state before applying the inverse update. This removes the platform-sensitive Brown trajectory and also recovers the Watson benchmark. Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Keep ordinary unglobalized bad-Broyden trajectories bit-for-bit unchanged, and clear the safeguard when a solver cache is reinitialized. Co-Authored-By: Chris Rackauckas <[email protected]>
bb3cd67 to
fb57e9f
Compare
|
Rebased onto current clean master New head: Reconciliation during the rebase:
Exact local validation on the rebased head: cd lib/NonlinearSolveQuasiNewton
OPENBLAS_CORETYPE=Sandybridge GROUP=Core \
julia +1.12 --startup-file=no --project=. \
-e 'using Pkg; Pkg.test(; julia_args=["--check-bounds=auto", "--compiled-modules=yes", "--depwarn=yes"], force_latest_compatible_version=false, allow_reresolve=true)'Result: all 1001 assertions passed:
Whole-repository Runic 1.7.0 and |
|
Closing in favor of #1125. Problem #8 (Brown almost linear) on The safeguard here changes unglobalized bad-Broyden trajectories for every user whose first step trips |
Ignore this PR until it has been reviewed by @ChrisRackauckas.
Summary
norm(du) > 10 * max(norm(u), 1)), then retain a state-scale bound for that solve.reinit!so a reused solver cache cannot inherit limiter state.init/solve!/reinit!interface.4.23.3and NonlinearSolveQuasiNewton to1.14.4.No test expectation, threshold, tolerance, skip, or broken-test classification is changed.
Cause
Problem 8 in the robustness matrix, Brown almost linear, fails for algorithm 4:
At the standard start, the state norm is about
1.58, while the true-Jacobian displacement norm is about5288and the full-step residual is about1.09e28. Bad-Broyden inverse updates then follow a roundoff-sensitive trajectory: the same source and dependency graph can converge or return the initial best residual5.5depending on the BLAS kernel.The hard CI boundary is
74405d303(#1051), which removed Brown from algorithm 4's expected-broken list without changing this solver path. Existing issue #1096 records the machine dependence. A controlled clean-master reproduction on Julia 1.12.6 withOPENBLAS_CORETYPE=SandybridgereturnedUnstable, residual5.5, after five steps.Current rebase
2b0dda5f64402c5177507d9b1bb2e73ed0db4e5bfb57e9fbde97eaccaddc510d265a7d5c50a34180Local validation
From
lib/NonlinearSolveQuasiNewtonon Julia 1.12.6:OPENBLAS_CORETYPE=Sandybridge GROUP=Core \ julia +1.12 --startup-file=no --project=. \ -e 'using Pkg; Pkg.test(; julia_args=["--check-bounds=auto", "--compiled-modules=yes", "--depwarn=yes"], force_latest_compatible_version=false, allow_reresolve=true)'Passed all 1001 assertions:
599 / 5992 / 227 / 27216 / 2162 / 227 / 2799 / 992 / 227 / 27Testing NonlinearSolveQuasiNewton tests passedRepository-wide Runic 1.7.0
--check .andgit diff --checkboth exited successfully.The previous macOS CI validation of the final safeguard reported the complete root Broyden matrix at
95 pass / 20 expected broken; the remaining red Core jobs in that run were the separate homotopy allocation baseline tracked in #1076.