optim, break the loop as the measures are sorted.