Production Maximization and Cost Minimization