Compute the objective function of the clustering

grouping.computeobj(grps)