Cost minimization analysis