Optimization and Nonlinear Equations