# Optimization

## Submodules

### Fitting a Dynamic Model

Introduction This example takes us through the beginning of the triple pendulum example again.

Go to Fitting a Dynamic Model### Glider Optimization

%matplotlib inline import pynamics from pynamics.frame import Frame from pynamics.variable_types import Differentiable,Constant from pynamics.

Go to Glider Optimization### Least Squares Optimization

%matplotlib inline import numpy import numpy.random import matplotlib.pyplot as plt import numpy.

Go to Least Squares Optimization### Scipy Optimization Example

This short example shows you how to use the scipy minimize function to identify model parameters.

Go to Scipy Optimization Example### Solving Nonlinear Problems with Scipy Optimize and pyCMA

Introduction Nonlinear solvers can suffer from the possibility of reaching local minima if the initial guess is too far away from the best minimum solution.

Go to Solving Nonlinear Problems with Scipy Optimize and pyCMA## Other Resources

- Glider Code from Week 13

## External Resources

Least Squares

- https://textbooks.math.gatech.edu/ila/least-squares.html
- http://ltcconline.net/greenl/courses/203/matrixonvectors/leastsquares.htm

Nonlinear Least Squares