Use hill climbing to find the global minimum
hillclimbing(f, x, h = 1, m = 1000)| f | function representing the derivative of |
|---|---|
| x | an initial estimate of the minimum |
| h | the step size |
| m | the maximum number of iterations |
the x value of the minimum found
Hill climbing