Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 3. Programming Techniques for Da... > 3.6 Case Study: Finding the Minimum ...

3.6 Case Study: Finding the Minimum of a Function

This section shows how you can write a SAS/IML module to minimize a continuous function of one variable on a closed interval. To make the problem easier, assume that the function is unimodal, meaning that it has a single minimum on the interval.

There are many techniques for finding the minimum of a continuous function on a closed interval. The technique presented in this section is known as the golden section search (Thisted 1988). The basic idea is to bracket the minimum, meaning that you must find three points a < x1 < b such that the value f (x1) is less than the function evaluated at either endpoint. In the golden section search, the initial interval [a, x1] is smaller than the interval [x1, b]. Therefore, a new point x2 [x1, b] is chosen and the function is evaluated at x2. If f (x1) < f (x2), then a < x1 < x2 is a new smaller interval that brackets the minimum. Otherwise, x1 < x2 < b is a new smaller interval that brackets the minimum. In either case, the process repeats with the new smaller interval. This process is schematically indicated in Figure 3.24.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint