Solving and Optimizing Large-Scale Nonlinear Systems