Go to the documentation of this file.
79 int main( int argc, char **arg)
88 boolean defaultPathName;
99 unsigned int numIterations;
108 defaultPathName=(argc==2);
113 fprintf(stderr, "Reading parameters from : %s\n", GetFileFullName(&fparam));
122 fprintf(stderr, "Random seed : %u\n",ri);
175 Error( "Undefined smooth method");
180 numIterations=atoi(arg[4]);
185 parallel=atoi(arg[5]);
196 SmoothSamples(¶meters,parallel,mode,numIterations,ns,path,&sns,&spath,&world);
207 Error( "Could not read the input path file");
217 fprintf(stderr, " Wrong number of parameters.\n");
218 fprintf(stderr, " Use:\n");
219 fprintf(stderr, " cuiksmoothpath <problem name> <path name> [<mode> <iterations> <parallel>]\n");
220 fprintf(stderr, " where <problem name> is the file describing the problem.\n");
221 fprintf(stderr, " <path name> is the file with the path to smooth.\n");
222 fprintf(stderr, " <mode> [optional] is the algorithm to use: RANDOM, GRADIENT, SHORTCUT or EFFORT.\n");
223 fprintf(stderr, " The defatul is SHORTCUT (faster but might return suboptimal paths).\n");
224 fprintf(stderr, " <iterations> [optional] is the maximum number of iterations.\n");
225 fprintf(stderr, " The default is 2 for RANDOM smoothing and 1000 for GRADIENT smoothing.\n");
226 fprintf(stderr, " For the RANDOM method this number is scaled by the number of steps in the path.\n");
227 fprintf(stderr, " The GRADIENT method might stop earlier if the gradient becomes 0.\n");
228 fprintf(stderr, " <parallel> [optional] 1 if the smooth has to be exectued in parallel and 0 for serial execution.\n");
229 fprintf(stderr, " The default is 0 for RANDOM and SHORTCUT and 1 for GRADIENT.\n");
230 fprintf(stderr, "\n");
231 fprintf(stderr, " When called as:\n");
232 fprintf(stderr, " cuiksmoothpath <problem name>\n");
233 fprintf(stderr, " The default parameters and the default path name are assumed.\n");
236 return(EXIT_SUCCESS);
|
Follow us!