 Timestamp:
 Feb 19, 2008 2:06:58 PM (13 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Cbc/src/CbcSolver.cpp
r874 r879 3541 3541 int statistics_nprocessedrows=0, statistics_nprocessedcols=0; 3542 3542 std::string statistics_result; 3543 int * statistics_number_cuts=NULL; 3544 const char ** statistics_name_generators=NULL; 3545 int statistics_number_generators=0; 3543 3546 memset(statusUserFunction_,0,numberUserFunctions_*sizeof(int)); 3544 3547 /* Note … … 7290 7293 7291 7294 numberGenerators = babModel_>numberCutGenerators(); 7295 statistics_number_cuts=new int [numberGenerators];; 7296 statistics_number_generators=numberGenerators; 7297 statistics_name_generators=new const char *[numberGenerators]; 7292 7298 char timing[30]; 7293 7299 for (iGenerator=0;iGenerator<numberGenerators;iGenerator++) { 7294 7300 CbcCutGenerator * generator = babModel_>cutGenerator(iGenerator); 7295 7301 CglStored * stored = dynamic_cast<CglStored*>(generator>generator()); 7302 statistics_name_generators[iGenerator]= 7303 generator>cutGeneratorName(); 7304 statistics_number_cuts[iGenerator]=generator>numberCutsInTotal(); 7296 7305 if (stored&&!generator>numberCutsInTotal()) 7297 7306 continue; … … 8928 8937 // can open  lets go for it 8929 8938 // first header if needed 8930 if (state!=2) 8931 fputs("Name,result,time,objective,continuous,tightened,cut_time,nodes,iterations,rows,columns,processed_rows,processed_columns\n",fp); 8939 if (state!=2) { 8940 fprintf(fp,"Name,result,time,objective,continuous,tightened,cut_time,nodes,iterations,rows,columns,processed_rows,processed_columns"); 8941 for (int i=0;i<statistics_number_generators;i++) 8942 fprintf(fp,",%s",statistics_name_generators[i]); 8943 fprintf(fp,"\n"); 8944 } 8932 8945 strcpy(buffer,argv[1]); 8933 8946 char * slash=buffer; … … 8936 8949 slash=buffer+i+1; 8937 8950 } 8938 fprintf(fp,"%s,%s,%.2f,%.16g,%g,%g,%.2f,%d,%d,%d,%d,%d,%d \n",8951 fprintf(fp,"%s,%s,%.2f,%.16g,%g,%g,%.2f,%d,%d,%d,%d,%d,%d", 8939 8952 slash,statistics_result.c_str(),statistics_seconds,statistics_obj, 8940 8953 statistics_continuous,statistics_tighter,statistics_cut_time,statistics_nodes, 8941 8954 statistics_iterations,statistics_nrows,statistics_ncols, 8942 8955 statistics_nprocessedrows,statistics_nprocessedcols); 8956 for (int i=0;i<statistics_number_generators;i++) 8957 fprintf(fp,",%d",statistics_number_cuts[i]); 8958 fprintf(fp,"\n"); 8943 8959 fclose(fp); 8944 8960 } else {
Note: See TracChangeset
for help on using the changeset viewer.