Skip to content

Latest commit

 

History

History
6 lines (3 loc) · 1.34 KB

File metadata and controls

6 lines (3 loc) · 1.34 KB

Optional - Activity 5: Mathematical Optimization

Mathematical optimization is finding the best option within a set of possibilities using a certain criterion (see https://en.wikipedia.org/wiki/Mathematical_optimization for more information). For instance in Least Squares Fitting, we have optimized the rms (a single number value), by determining the values of the slope and y-intercept that minimized the rms. In general, one could define any mathematical criterion for optimization, where optimization is defined by a variety of operations (although it is usually maximizing or minimizing the criterion). Read through optimizationTutorial.pdf, written by Zane Beckwith, (a former CAP REU graduate assistant). It provides an overview of the topic of optimization along with several different examples of different types of optimization algorithms.

At the end of the write up, Zane has a short tutorial for which he has provided two codes: scatter.py & neldermead.py. Both of these python programs actually contain function definitions and can be read into your own code using the import command. To complete the activity, you would use the function minimize from neldermead.py to find minima of the Himmelblau function, which is provided by the function simulate in scatter.py. I have provided my own example of how to do this in zanesprob.py.