Before revision:  The goal is to minimize D_k(m,p) and to find the optimizing values k and m.
After revision:  The goal is to minimize D_k(m,p) , which is called the cost associated to~ m.