Skip to content

Added golden section method#58

Merged
ChrisRackauckas merged 11 commits into
SciML:mainfrom
Iskaban10:golden_section
Apr 19, 2026
Merged

Added golden section method#58
ChrisRackauckas merged 11 commits into
SciML:mainfrom
Iskaban10:golden_section

Conversation

@Iskaban10

Copy link
Copy Markdown
Contributor

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Added golden section method which finds the optima of an unimodal 1D function. Not reliant on the derivative of the function.

Comment thread src/golden_section.jl Outdated
T = typeof(α_initial)

# Defines the 1D objective: ϕ(α) = f(x + αd)
ϕ(α) = f(x + α .* d)

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.

allocating

@ChrisRackauckas ChrisRackauckas merged commit 7496e28 into SciML:main Apr 19, 2026
10 checks passed
@Iskaban10 Iskaban10 deleted the golden_section branch April 19, 2026 13:46
@Iskaban10 Iskaban10 restored the golden_section branch April 19, 2026 13:46
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