Skip to content

add support for LineSearches.jl#128

Open
vchuravy wants to merge 3 commits intomainfrom
vc/linesearches.jl
Open

add support for LineSearches.jl#128
vchuravy wants to merge 3 commits intomainfrom
vc/linesearches.jl

Conversation

@vchuravy
Copy link
Copy Markdown
Member

No description provided.

@github-actions
Copy link
Copy Markdown

Once the build has completed, you can preview your PR at this URL: https://NumericalMathematics.github.io/Ariadne.jl/previews/PR128/ in a couple of minutes.

Base automatically changed from vc/linesearch to main April 20, 2026 19:24
@vchuravy vchuravy force-pushed the vc/linesearches.jl branch from 78ebce1 to f4bca65 Compare April 21, 2026 14:48
@vchuravy vchuravy changed the base branch from main to vc/workspace April 21, 2026 14:48
Base automatically changed from vc/workspace to main April 22, 2026 04:56
vchuravy and others added 3 commits April 22, 2026 07:14
- Use ‖F‖²/2 as line search objective so dϕ = dot(F, J·d) without division
- Compute dϕ via ws.J (JacobianOperator) instead of nested autodiff
- Guard against non-descent directions (dϕ₀ ≥ 0)
- Add tests for BackTracking, StrongWolfe, MoreThuente on Rosenbrock
- Update rosenbrock.jl example with LineSearches.jl section

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vchuravy vchuravy force-pushed the vc/linesearches.jl branch from f4bca65 to ea55b8b Compare April 22, 2026 05:15
@vchuravy vchuravy marked this pull request as ready for review April 22, 2026 05:22
@github-actions
Copy link
Copy Markdown

Your PR requires formatting changes to meet the project's style guidelines.
Please consider running Runic (git runic main) to apply these changes.

Click here to view the suggested changes.
diff --git a/src/linesearches.jl b/src/linesearches.jl
index 0958a2c..8701985 100644
--- a/src/linesearches.jl
+++ b/src/linesearches.jl
@@ -85,7 +85,7 @@ function (ls::BacktrackingLineSearch)(ws, norm_res_prior, d)
     return norm_res
 end
 
-struct LineSearches_JL{T<:Any} <: AbstractLineSearch
+struct LineSearches_JL{T <: Any} <: AbstractLineSearch
     linesearch::T
 end
 

Comment on lines +9 to +10
function (ls::LineSearches_JL)(ws, norm_res_prior, d)
# TODO: avoid allocations in the line by providing a workspace for the line search
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to do this in this PR?

@ranocha
Copy link
Copy Markdown
Member

ranocha commented Apr 22, 2026

What are the general results that you get with this?

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.

2 participants