Lines Matching refs:cost
126 " [+0x0020?Enable reorder skip/cost trace.]"
992 sfprintf(sfstderr, "reorder cost %6u %u\n", state.map[tp->member[j]], cst[tp->member[j]]);
1137 Tsp_cost_t** cost;
1141 if (!(cost = newof(0, Tsp_cost_t*, row, row * row * sizeof(Tsp_cost_t))))
1142 error(ERROR_SYSTEM|3, "out of space [%d X %d cost matrix]", row, row);
1143 v = (Tsp_cost_t*)(cost + row);
1146 cost[i] = v;
1158 sfprintf(sfstderr, "compute the tsp cost matrix\n");
1167 cost[i][j] = minof(together[i][j], apart[i][j]);
1179 if (!(tsp = tspopen(&disc, cost, row, TSP_DFS|(state.verbose ? TSP_VERBOSE : 0))))
1189 breakval = cost[tour[end]][tour[0]];
1191 if (cost[tour[i]][tour[i+1]] > breakval)
1194 breakval = cost[tour[i]][tour[i+1]];
1245 free(cost);