Go to the documentation of this file.
79 int main( int argc, char **arg)
86 unsigned int n,k,nBoxes;
90 double *cost,minCost,maxCost,c;
103 fprintf(stderr, "Reading solution file : %s\n", GetFileFullName(&fsols));
107 Error( "Empty solution file in cuikcost");
113 NEW(cost,nBoxes, double);
142 fprintf(stderr, "Extreme costs : %g %g\n",minCost,maxCost);
150 Error( "Output file for costs can not be opened");
152 for(k=0;k<nBoxes;k++)
154 c=(cost[k]-minCost)/(maxCost-minCost);
156 fprintf(fout, "%g\n",c);
173 fprintf(stderr, "Use:\n");
174 fprintf(stderr, " cuikcost <problem_name> <sol_name> \n");
175 fprintf(stderr, " <problem_name> the input problem.\n");
176 fprintf(stderr, " <sol_name> Configurations to evaluate.\n");
177 fprintf(stderr, " The ouput file is <sol_name>.cost\n");
180 return(EXIT_SUCCESS);
|
Follow us!