Optimal Lot Sizing, Process Quality Improvement and Setup Cost Reduction