Cost Optimization for Engineers: From Theory to Action