Update the Simplex example.
Optimization fixes.