10176

# Minimum of a Function Using the Fibonacci Sequence

Consider the function , , where is a parameter. This Demonstration approximates the minimum of using an algorithm based on the Fibonacci sequence, shown by a magenta point on the plot of . For comparison, the blue point is the minimum found by Mathematica's built-in function NMinimize. When is sufficiently small, there is good agreement.
You can vary the values of and (see the Details section for the definition of ). The Demonstration plots and you can see a table of points in the iteration of the algorithm.

### DETAILS

Steps involved in a Fibonacci search:
1. Calculate , where is the interval in which is defined.
2. Identify such that where is the Fibonacci sequence.
3. Set and .
4. Calculate and .
5. If , set and ; otherwise set and .
6. Set and go to step 3.
7. Stop when .
Reference
[1] J. H. Mathews. "Module for the Fibonacci Search." (Apr 30, 2013) math.fullerton.edu/mathews/n2003/FibonacciSearchMod.html.

### PERMANENT CITATION

 Share: Embed Interactive Demonstration New! Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details » Download Demonstration as CDF » Download Author Code »(preview ») Files require Wolfram CDF Player or Mathematica.

#### Related Topics

 RELATED RESOURCES
 The #1 tool for creating Demonstrations and anything technical. Explore anything with the first computational knowledge engine. The web's most extensive mathematics resource. An app for every course—right in the palm of your hand. Read our views on math,science, and technology. The format that makes Demonstrations (and any information) easy to share and interact with. Programs & resources for educators, schools & students. Join the initiative for modernizing math education. Walk through homework problems one step at a time, with hints to help along the way. Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet. Knowledge-based programming for everyone.
 © 2015 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS
 Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX Download or upgrade to Mathematica Player 7EX I already have Mathematica Player or Mathematica 7+