File Exchange

image thumbnail

golden_section(f,xl​,xu)

version 1.4.0.0 (902 Bytes) by Hemanth
Golden section algorithm to find minima

1 Download

Updated 08 Nov 2016

View License

This function implements golden search algorithm to find the minima of a function

Cite As

Hemanth (2020). golden_section(f,xl,xu) (https://www.mathworks.com/matlabcentral/fileexchange/54178-golden_section-f-xl-xu), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

mistake in the algorithm!

you should devide by the golden ratio (GR). not multiply!

golden_section(@(x)sin(x),-5,5)
gives a answer out of bound (17.2779)

Updates

1.4.0.0

Corrected a mistake, thanks to Erik van Oene

1.3.0.0

Corrected a mistake

1.2.0.0

A small correction in usage example

1.1.0.0

A small correction in golden ratio

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux