Nonlinear Optimization in Finite Dimensions