Optimal Inspection, Lot Sizing and Setup Reduction