next_inactive up previous


Homework 4: Optimization

Due March 1.

  1. Write a program to find the minimum of a function of one variable using the Golden Search method.

    As with the root finding homework, write your code in a flexible manner so that you can use it later for other problems, and choose your stopping criteria carefully.

  2. Test your implementation on the following problem:

    The rotation curves (that is, rotation velocity vs. distance from the center) for galaxies are observed to rise linearly close to the center, and to be constant far from the center. A possible (but dynamically, not well motivated) function which can be fit to such a rotation curve is;

    \begin{displaymath}
v_{model}(r) = v_{inf} (1 - e^{-r/r_0}),
\end{displaymath}

    where $v_{inf}$ is the assympotic velocity and $r_0$ is a characteristic radius.

    Using the Golden Search method, and assuming that $v_{inf}$ is 100 km/s, find the $r_0$ that gives the best fit of the above formulae to the following ``data'':

    $r_{obs}$ (kiloparsecs) $v_{obs}$(km/s)
    1 41.96
    2 59.64
    3 77.96
    4 67.57
    5 77.33
    6 90.83
    7 96.2
    8 89.68
    9 96.53
    10 81.7

    (This data will be available on the web site as
    http://www.astro.washington.edu/astro497d/rot.dat.) As a criteria for goodness of fit, use the standard least squares formulae:

    \begin{displaymath}
E = \sum_{i = 1}^{N_{data}} (v_{obs} - v_{model}(r_{obs}))^2
\end{displaymath}

    Plot the ``trajectory'' of the Golden Search iterations by displaying each iterate on a plot of $r_0$ vs. $E$ and connecting successive points.

About this document ...

This document was generated using the LaTeX2HTML translator Version 99.2beta8 (1.43)

Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.

The command line arguments were:
latex2html -split 0 hw4.tex

The translation was initiated by Tom Quinn on 2001-02-15


next_inactive up previous
Tom Quinn 2001-02-15