Skip to content

BackTracking: take the cubic minimizer in its conjugate form when b > 0 - #117

Open
ParadaCarleton wants to merge 1 commit into
SciML:mainfrom
ParadaCarleton:backtracking-cubic-cancellation
Open

ParadaCarleton wants to merge 1 commit into
SciML:mainfrom
ParadaCarleton:backtracking-cubic-cancellation

Conversation

@ParadaCarleton

Copy link
Copy Markdown

When the cubic coefficient a is small next to b, (-b + sqrt(b^2 - 3a dϕ₀)) / 3a cancels -b against the square root. In Float32 this rounds the minimizer to 0, so every cubic step falls to the ρ_lo floor and the search shrinks the step toward zero on a nearly quadratic merit. For b > 0 this takes the equal conjugate form -dϕ₀ / (b + sqrt(...)), which LineSearches.jl's BackTracking already uses; b <= 0 keeps the original form, which does not cancel there. The added test has ϕ(α) = 1 - 1e-3 α + α² + 1e-6 α³ in Float32, where the old formula returns 0 and the new one 5e-4.

This branch has not been deployed

No deployments
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.

1 participant