iterative cost optimization techniques