4 How Low Can You Go?

It is not hard to see that the global minimum is at least as low as , and it then follows from the structure of the function (two of the six terms have easy-to-measure positive values; the sines are never less then –1 or, in one case, –0.84) that the true minimum lies inside the unit circle. Then we used a root-finding method to find all the critical points and choose the correct one. The root-finding method was developed by Wagon in 1996 for the VisualDSolve project in differential equations, and uses data from a contour plot to find all solutions to a pair of equations. We can get 500 digits easily. The answer to 100 digits is

.

Here is a solution that finds all the critical poiunts by using the FindAllCrossings function just alluded to.

We now find all critical points (there are 2720 in the unit square), keeping any for which the function value is under . We used a collection of 64 subsquares of the 2×2 square around the origin, to save memory. And by increasing the resolution and watching the results, we gain evidence for the completeness of the count. We include here the complete code for FindAllCrossings2D (from Wagon's book, Mathematica in Action, chap. 12), which finds all solutions to two equations in an interval. The resolution is controlled by the PlotPoints option which controls the resolution of the contour plot used to get started. We did not attempt to prove that a certain resolution was enough for the problem at hand, but we did examine images of the crossing contours and that convinced us that we had all the roots.

We call the functions with a high resolution setting (160, chosen so that the number of roots is stable; that is, we used higher settings too and it appears certain that we have found all the critical points).

Get the global minimum.

And now it is easy to zoom in to a more precise value.

Here is an alternative solution (code is for Mathematica 4.2) using a combinatorial search technique that we learned about for problem 5. This is not the ideal way, but it gets the answer very quickly; the contour-based root-finding given above is better, but the root-finder (code not given here) takes a little programming. The SimulatedAnnealing setting to Method also works for this problem.

Our methods described here do not provide proof of correctness. The Wolfram Research team devleoped a method using interval arithmetic that does provide such proof.

Created by Mathematica (June 27, 2004)