This is an example of how to use the Optimization class by fitting curves of increasing degree to random data.