Mathematical Foundations and Optimization Methods for Engineering Models