Problem 45951. Function minimization - beat fminsearch!
Sequel of problem 45948
https://www.mathworks.com/matlabcentral/cody/problems/45948-function-minimization-beat-fminbnd
Matlab's fminseach function finds an unconstrained minimizer of a function using, starting from an initial guess.
Can you do better than fminsearch, for a single variable?
You are given a function handler fun (one scalar input, one scalar output) and an initial guess x0. Return a minimizer xopt between such that fun(xopt) < fminsearch(fun,x0)
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers5
Suggested Problems
-
Pythagorean perfect squares: find the square of the hypotenuse and the length of the other side
58 Solvers
-
379 Solvers
-
Sort numbers by outside digits
158 Solvers
-
Mandelbrot Number Test [Real+Imaginary]
26 Solvers
-
Replace all zeros and NaNs in a matrix with the string 'error'
103 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!