Repository navigation
Add a native bounded trust-region solver - #1219
Merged
ChrisRackauckas merged 2 commits intoSep 10, 2026
Merged
ChrisRackauckas merged 2 commits into
ChrisRackauckas merged 2 commits into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
`BoundedTrustRegion` is new public API in NonlinearSolveFirstOrder, and 2.5.0 was registered from master while this branch was open. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Fable 5.1 <[email protected]> Agent-Harness: Claude Code Agent-Model: claude-fable-5-1 Agent-Session: https://claude.ai/code/session_01QnF4Nc4VpRrSjbbBTgeaUb
ChrisRackauckas-Claude
force-pushed
the
feature/bounded-trust-region
branch
2 times, most recently
from
September 10, 2026 08:48
6f2915f to
6e47e1a
Compare
ChrisRackauckas
marked this pull request as ready for review
September 10, 2026 09:20
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 10, 2026
- Remove name duplicates in keyword arguments/named tuples (#1238) - Add 32-bit Core CI lane via test_groups.toml (#1239) - Add a native bounded trust-region solver (#1219) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 10, 2026
- Remove name duplicates in keyword arguments/named tuples (#1238) - Add 32-bit Core CI lane via test_groups.toml (#1239) - Add a native bounded trust-region solver (#1219) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 10, 2026
- Remove name duplicates in keyword arguments/named tuples (#1238) - Add 32-bit Core CI lane via test_groups.toml (#1239) - Add a native bounded trust-region solver (#1219) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 10, 2026
- Remove name duplicates in keyword arguments/named tuples (#1238) - Add 32-bit Core CI lane via test_groups.toml (#1239) - Add a native bounded trust-region solver (#1219) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
1 of 7 tasks
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
Adds
BoundedTrustRegion, an explicit first-order solver that handles box bounds in the original coordinates. It projects dogleg and Cauchy candidates into the feasible box, chooses the candidate with the better quadratic-model reduction, and updates the trust radius from actual versus predicted reduction. Exact-bound initial guesses are supported; infeasible initial guesses are rejected before evaluating the residual.For nonlinear least-squares problems, projected-gradient stationarity is a successful constrained optimum. For nonlinear root problems, the same non-root stationary point is not reported as success: the default leaves normal root termination in control, while an explicit
gtolreturnsStalled. The new public API is documented and the root and FirstOrder minor versions are bumped.Scope and issue behavior
This is related to #1147, but does not close it.
BoundedTrustRegionavoids the transform derivative vanishing at a bound, but it is still a local method and cannot guarantee selection of the interior-root basin.From the reported
u0 = [0.3, 1.0], the explicit bounded method converges to the lower-bound local least-squares point:From
u0 = [0.3, 5.0], in the interior-root basin:Failing before / passing after
The new test file was loaded in the Core test environment against clean base
dc80c72d1:The same test file on this branch:
The assertions cover the native-bounds trait, interior roots, exact-bound least-squares stationarity, non-root root-problem behavior, out-of-place/in-place functions, static arrays, scalar and partial bounds, the issue residual, infeasible starts before residual evaluation, and reinitialization.
Verification
Julia 1.12.4, Linux x86_64:
After the final rebase onto
9655f2694, which only changes Broyden/reset-condition code and a root test, the bounded boundary and interior-root smoke assertions also passed:The docs build emitted only existing page-size warnings and the expected skipped-deployment warning.
Not verified
prejobs.StaticDatacompatibility failure; the branch was validated with Julia 1.12.4 instead.Review point
This is a projected dogleg/Cauchy method, not a Coleman-Li reflective implementation, and it is opt-in rather than a new default. In particular, it deliberately does not claim to make the reported initial guess in #1147 reach the interior root.
Links