Plotting Search Data

The utility functions FindMinimumPlot and FindRootPlot show search data for FindMinimum and FindRoot for one- and two-dimensional functions. They work with essentially the same arguments as FindMinimum and FindRoot except that they additionally take options, which affect the graphics functions they call to provide the plots, and they do not have the HoldAll attribute as do FindMinimum and FindRoot.

FindMinimumPlot[f,{x,xst},opts]plot the steps and the points at which the function f and any of its derivatives that were evaluated in FindMinimum[f,{x,xst}], superimposed on a plot of f versus x; opts may include options from both FindMinimum and Plot
FindMinimumPlot[f,{{x,xst},{y,yst}},opts]plot the steps and the points at which the function f and any of its derivatives that were evaluated in FindMinimum[f,{{x,xst},{y,yst}}], superimposed on a contour plot of f as a function of x and y; opts may include options from both FindMinimum and ContourPlot
FindRootPlot[f,{x,xst},opts]plot the steps and the points at which the function f and any of its derivatives that were evaluated in FindRoot[f,{x,xst}], superimposed on a plot of f versus x; opts may include options from both FindRoot and Plot
FindRootPlot[f,{{x,xst},{y,yst}},opts]plot the steps and the points at which the function f and any of its derivatives that were evaluated in FindRoot[f,{{x,xst},{y,yst}}], superimposed on a contour plot of the merit function f as a function of x and y; opts may include options from both FindRoot and ContourPlot

Plotting search data.

Note that to simplify processing and reduce possible confusion about the function f, FindRootPlot does not accept equations; it finds a root f=0.

Steps and evaluation points are color coded for easy detection as follows:

Related Tutorials