#include <BCP_lp.hpp>
Public Member Functions | |
BCP_lp_statistics () | |
void | display () const |
void | add (const BCP_lp_statistics &stat) |
Packing and unpacking | |
void | pack (BCP_buffer &buf) |
void | unpack (BCP_buffer &buf) |
Public Attributes | |
double | time_feas_testing |
double | time_cut_generation |
double | time_var_generation |
double | time_heuristics |
double | time_lp_solving |
double | time_branching |
Definition at line 51 of file BCP_lp.hpp.
|
The contsructor just zeros out every timing data Definition at line 68 of file BCP_lp.hpp.
00068 : 00069 time_feas_testing(0), 00070 time_cut_generation(0), 00071 time_var_generation(0), 00072 time_heuristics(0), 00073 time_lp_solving(0), 00074 time_branching(0) 00075 {} |
|
Add the argument statistics to this one. This method is used when multiple LP processes are running and their stats need to be combined. Definition at line 50 of file BCP_lp.cpp. References time_branching, time_cut_generation, time_heuristics, time_lp_solving, and time_var_generation.
00051 { 00052 time_cut_generation += stat.time_cut_generation; 00053 time_var_generation += stat.time_var_generation; 00054 time_heuristics += stat.time_heuristics ; 00055 time_lp_solving += stat.time_lp_solving ; 00056 time_branching += stat.time_branching ; 00057 } |
|
Print out the statistics Definition at line 39 of file BCP_lp.cpp. Referenced by BCP_tm_user::display_final_information().
00040 { 00041 printf("LP statistics:\n"); 00042 printf(" time in cut generation : %12.3f sec\n", time_cut_generation); 00043 printf(" time in var generation : %12.3f sec\n", time_var_generation); 00044 printf(" time in heuristics : %12.3f sec\n", time_heuristics); 00045 printf(" time in solving LPs : %12.3f sec\n", time_lp_solving); 00046 printf(" time in strong branching: %12.3f sec\n", time_branching); 00047 printf("\n"); 00048 } |