Applied Optimization: Formulation and Algorithms for Engineering Systems