Repository navigation
Update tests authored against the Dogleg trust-region default - #1302
Merged
ChrisRackauckas merged 1 commit intoSep 17, 2026
Merged
Conversation
`TrustRegion()` now defaults to the Moré subproblem, and three test sites still encode the old Dogleg + RadiusUpdateSchemes.Simple behavior: - misc_tests__item9 "TrustRegion reuse" asserts a specific accept/accept/reject step trajectory; under Moré the second step is already rejected, shifting the sequence by one iteration. Pin `subproblem = TrustRegionSubproblem.Dogleg` so the authored trajectory holds — the test exercises the Jacobian-reuse machinery, which is subproblem-agnostic. - misc_tests__item3 asserts `initial_trust_radius == max_trust_radius/11`, the Dogleg+Simple initial-radius formula. Under the Moré default the initial radius is ‖u0‖; assert that instead. - bounded_default_tests introspected `cache.caches`, but `init(prob)` with no explicit algorithm returns the lazy `NonlinearSolveNoInitCache` wrapper, which has no sub-caches. Bounds propagation is already covered by the `sol.u ≈ [1.0, 0.25]` assertion (the unbounded optimum [2, 0.25] violates ub = 1), so drop the introspection. 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.10.21 Agent-Model: SWE-2 Max Agent-Session: /home/crackauc/.local/share/devin/cli/summaries/history_75aaeac8e79744c6.md (local transcript)
This was referenced Sep 17, 2026
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.
Summary
TrustRegion()now defaults to the Moré subproblem, and three test sites still encode the old Dogleg +RadiusUpdateSchemes.Simplebehavior — they fail deterministically on master:misc_tests__item9"TrustRegion reuse" (4 failures at lines 253–258): asserts a specific accept/accept/reject step trajectory. Under Moré the second step is already rejected, shifting the whole sequence by one iteration. Pinnedsubproblem = TrustRegionSubproblem.Doglegso the authored trajectory holds — the test exercises the Jacobian-reuse machinery (jacobian_reuse.jl), which is subproblem-agnostic.misc_tests__item3:40: assertsinitial_trust_radius == max_trust_radius / 11, the Dogleg+Simple initial-radius formula. Under the Moré default the initial radius is‖u0‖andmax = Inf; now asserts≈ hypot(100.0, 1.0)foru0 = [100, 1].bounded_default_tests.jl:12: introspectedcache.caches, butinit(prob)with no explicit algorithm returns the lazyNonlinearSolveNoInitCachewrapper, which has no sub-caches (FieldError). Bounds propagation is already covered bysol.u ≈ [1.0, 0.25]— the unbounded optimum[2, 0.25]violatesub = 1— so the introspection line is dropped.Test plan
--checkclean;typosclean.🤖 Generated with Devin — Agent-Harness: Devin CLI 3000.10.21, Agent-Model: SWE-2 Max. Session transcript (local):
/home/crackauc/.local/share/devin/cli/summaries/history_75aaeac8e79744c6.mdCo-Authored-By: Chris Rackauckas [email protected]