Basics of Nonlinear Optimization