Add quadratic cost function to exp-delay metric