Advanced Control and Optimization with Applications to Complex Automotive Systems