Critical Points and Optimization