Localsolver
5.5
|
Statistics of the search.
The statistics are useful for evaluating the quality of your model. Indeed, your model is suited for LocalSolver (and more generally for local search) if the percentage of accepted moves is larger than 1 % with an annealing level equal to 0. Larger is the percentage of accepted moves, larger is the diversification of the search, better is the convergence toward high-quality solutions. If the number of accepted moves is too low, we suggests you to relax some constraints of the model (goal programming) or to augment the annealing level. A fine modeling is much preferable to a fine tuning of the search, both for effectiveness and for robustness.
Public Member Functions | |
int | getRunningTime () const |
Gets the running time in seconds. | |
long long | getNbIterations () const |
Gets the number of iterations. | |
long long | getNbMoves () const |
Gets the number of (attempted) moves. | |
long long | getNbAcceptedMoves () const |
Gets the number of accepted moves. | |
long long | getNbImprovingMoves () const |
Gets the number of accepted moves having improved the cost of the current solution. | |
long long | getNbRejectedMoves () const |
Gets the number of rejected moves. | |
long long | getNbInfeasibleMoves () const |
Gets the number of moves leading to infeasible solutions. | |
double | getPercentAcceptedMoves () const |
Gives the percentage of accepted moves relative to the number of moves. | |
double | getPercentImprovingMoves () const |
Gives the percentage of improving moves relative to the number of moves. | |
double | getPercentRejectedMoves () const |
Gives the percentage of rejected moves relative to the number of moves. | |
double | getPercentInfeasibleMoves () const |
Gives the percentage of infeasible moves relative to the number of moves. | |
std::string | toString () const |
Returns a string representation of the statistics. | |
std::string | getInfo () const |
Returns useful info about the search while running. | |
~LSStatistics () | |
LSStatistics (const LSStatistics &other) | |
LSStatistics & | operator= (const LSStatistics &other) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns useful info about the search while running.
Only allowed if the solver has been started at least once. Only allowed in states S_Paused or S_Stopped. Useful for debugging or logging purposes.
Here are some explanations about the output string:
|
inline |