formulation cost optimization