Optimization using the gradient and simplex methods.

Optimization using the gradient and simplex methods.