Week 12: November 14 - 18

Optimization

Finding the “best” solution to a problem is a common requirement in engineering and in the natural and social sciences. We start by looking at ways to do this for functions of a single variable.

Multivariable Optimization

We study optimization techniques for problems where more than one variable can be changed at a time.

Global Positioning System (GPS)

Finding a location using the Global Positioning System (GPS) can be formulated as a multivariable optimization problem. Using a simplified 2D GPS model, we solve this problem using the techniques developed in class.

NumPy

  • random.choice

Matplotlib

  • contour
  • contourf
  • colorbar

Quiz 10: NumPy Array Operations

  • Vectorized code
  • Axis-dependent operations: sum, mean, amin, amax, argmin, argmax

Sample Quiz 10