cost-to-risk optimization