Public Member Functions | |
Report (const char *solutions_filename, const char *f_res1_filename, const char *f_res2_filename) | |
void | compareAtLastIter (FILE *out) |
void | compareAtIterAlgo1 (FILE *out, int iter) |
void | compareAtIterAlgo1R (FILE *out, int iter) |
dataset * | getF_res (int i) |
solutions * | getSolutions () |
Report (const char *bound_opt_values_filename, const char *f_res1_filename, const char *f_res2_filename) | |
dataset * | getF_res (int i) |
bounds_opt_values * | getBoundOptValues () |
void | fprint (FILE *out) |
void | report (double perc) |
void | reportMaxDiff () |
Private Member Functions | |
bool | doubleEqual (double val1, double val2) |
int | doubleCmp (double val1, double val2) |
void | fprintfReportHeader (FILE *out) |
void | fprintfRHeader (FILE *out) |
void | fprintfRLine (FILE *out, int instance, int f_res1_iter, int f_res2_iter) |
void | fprintfReportLine (FILE *out, int instance, int f_res1_iter, int f_res2_iter, char *additional_col) |
Private Attributes | |
solutions * | _sol |
dataset * | _f_res1 |
dataset * | _f_res2 |
bounds_opt_values * | _bov |
dataset * | _f_res1 |
Definition at line 441 of file report.cpp.
Report::Report | ( | const char * | solutions_filename, | |
const char * | f_res1_filename, | |||
const char * | f_res2_filename | |||
) | [inline] |
Report::Report | ( | const char * | bound_opt_values_filename, | |
const char * | f_res1_filename, | |||
const char * | f_res2_filename | |||
) | [inline] |
bool Report::doubleEqual | ( | double | val1, | |
double | val2 | |||
) | [inline, private] |
Definition at line 449 of file report.cpp.
References a, and CMP_TOLERANCE.
Referenced by doubleCmp(), and fprintfReportLine().
int Report::doubleCmp | ( | double | val1, | |
double | val2 | |||
) | [inline, private] |
Definition at line 465 of file report.cpp.
References doubleEqual().
Referenced by compareAtIterAlgo1(), compareAtIterAlgo1R(), and compareAtLastIter().
void Report::fprintfReportHeader | ( | FILE * | out | ) | [inline, private] |
Definition at line 473 of file report.cpp.
References getF_res().
Referenced by compareAtIterAlgo1(), and compareAtLastIter().
void Report::fprintfRHeader | ( | FILE * | out | ) | [inline, private] |
void Report::fprintfRLine | ( | FILE * | out, | |
int | instance, | |||
int | f_res1_iter, | |||
int | f_res2_iter | |||
) | [inline, private] |
Definition at line 504 of file report.cpp.
References F_RES_TIME, getF_res(), and getSolutions().
Referenced by compareAtIterAlgo1R().
void Report::fprintfReportLine | ( | FILE * | out, | |
int | instance, | |||
int | f_res1_iter, | |||
int | f_res2_iter, | |||
char * | additional_col | |||
) | [inline, private] |
Definition at line 528 of file report.cpp.
References doubleEqual(), F_RES_BESTHEUR, F_RES_ITER, F_RES_MULTIPLIER, F_RES_TIME, F_RES_TOTCONS, F_RES_UBOUND, getF_res(), getSolutions(), SOLUTIONS_OPT, SOLUTIONS_RLT, SOLUTIONS_V1GAP, SOLUTIONS_V1TIME, and TEST_NOT_RUN_STRING.
Referenced by compareAtIterAlgo1(), and compareAtLastIter().
void Report::compareAtLastIter | ( | FILE * | out | ) | [inline] |
Definition at line 621 of file report.cpp.
References doubleCmp(), F_RES_UBOUND, fprintfReportHeader(), fprintfReportLine(), getF_res(), dataset::getIter(), solutions::getNumInstances(), and getSolutions().
void Report::compareAtIterAlgo1 | ( | FILE * | out, | |
int | iter | |||
) | [inline] |
Definition at line 664 of file report.cpp.
References doubleCmp(), F_RES_TIME, F_RES_UBOUND, fprintfReportHeader(), fprintfReportLine(), dataset::getDoubleField(), getF_res(), dataset::getIter(), solutions::getNumInstances(), and getSolutions().
void Report::compareAtIterAlgo1R | ( | FILE * | out, | |
int | iter | |||
) | [inline] |
Definition at line 749 of file report.cpp.
References doubleCmp(), F_RES_UBOUND, fprintfRHeader(), fprintfRLine(), dataset::getDoubleField(), getF_res(), dataset::getIter(), solutions::getNumInstances(), and getSolutions().
dataset* Report::getF_res | ( | int | i | ) | [inline] |
Definition at line 793 of file report.cpp.
References _f_res1, and _f_res2.
Referenced by compareAtIterAlgo1(), compareAtIterAlgo1R(), compareAtLastIter(), fprint(), fprintfReportHeader(), fprintfReportLine(), fprintfRLine(), report(), and reportMaxDiff().
solutions* Report::getSolutions | ( | ) | [inline] |
Definition at line 801 of file report.cpp.
References _sol.
Referenced by compareAtIterAlgo1(), compareAtIterAlgo1R(), compareAtLastIter(), fprintfReportLine(), and fprintfRLine().
dataset* Report::getF_res | ( | int | i | ) | [inline] |
bounds_opt_values* Report::getBoundOptValues | ( | ) | [inline] |
Definition at line 659 of file report2.cpp.
References _bov.
Referenced by fprint(), report(), and reportMaxDiff().
void Report::fprint | ( | FILE * | out | ) | [inline] |
Definition at line 661 of file report2.cpp.
References dataset::fprint(), bounds_opt_values::fprint(), getBoundOptValues(), and getF_res().
void Report::report | ( | double | perc | ) | [inline] |
Definition at line 668 of file report2.cpp.
References Stat::addEntry(), BOUNDOPT_BOUND, F_RES_UBOUND, getBoundOptValues(), bounds_opt_values::getDoubleField(), dataset::getDoubleField(), getF_res(), bounds_opt_values::getInstanceName(), bounds_opt_values::getNumInstances(), Stat::max(), Stat::mean(), Stat::min(), MIN_TIME_DIFFERENCE, Stat::stdDev(), and dataset::timeAtLinearizedBound().
void Report::reportMaxDiff | ( | ) | [inline] |
Definition at line 720 of file report2.cpp.
References Stat::addEntry(), BOUNDOPT_BOUND, F_RES_TIME, F_RES_UBOUND, getBoundOptValues(), bounds_opt_values::getDoubleField(), dataset::getDoubleField(), getF_res(), bounds_opt_values::getInstanceName(), dataset::getIter(), bounds_opt_values::getNumInstances(), INVALID_ENTRY, MIN_TIME_DIFFERENCE, and dataset::timeAtLinearizedBound().
solutions* Report::_sol [private] |
dataset* Report::_f_res1 [private] |
dataset * Report::_f_res2 [private] |
bounds_opt_values* Report::_bov [private] |
dataset* Report::_f_res1 [private] |
Definition at line 497 of file report2.cpp.