Lines Matching defs:cost
225 double lastcost = DBL_MAX, cost = bs->cost();
226 while(fabs(lastcost-cost)>0.0001) {
228 lastcost=cost;
229 cost = bs->cost();
231 f<<" bs->size="<<bs->size()<<", cost="<<cost<<endl;
313 f<<"...remaining blocks="<<bs->size()<<", cost="<<bs->cost()<<endl;
601 * returns the cost total squared distance of variables from their desired
604 double Blocks::cost() {
607 c += (*i)->cost();
1191 * Computes the cost (squared euclidean distance from desired positions) of the
1194 double Block::cost() {