LSStatistics Class¶
-
class LSStatistics¶
Statistics of the search.
Summary¶
Gets the running time in seconds. |
|
Gets the number of iterations. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
|
Returns a string representation of the statistics. |
Functions¶
-
int LSStatistics::getRunningTime() const¶
Gets the running time in seconds. Note that is the “real” time spent (and not only the CPU or system time). Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Running time in seconds.
-
long long LSStatistics::getNbIterations() const¶
Gets the number of iterations. Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of iterations.
-
long long LSStatistics::getNbMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of (attempted) moves.
-
long long LSStatistics::getNbAcceptedMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of accepted moves.
-
long long LSStatistics::getNbImprovingMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of improving moves.
-
long long LSStatistics::getNbRejectedMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of rejected moves.
-
long long LSStatistics::getNbInfeasibleMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of infeasible moves.
-
double LSStatistics::getPercentAcceptedMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Percentage of accepted moves.
-
double LSStatistics::getPercentImprovingMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Percentage of improving moves.
-
double LSStatistics::getPercentRejectedMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Percentage of rejected moves.
-
double LSStatistics::getPercentInfeasibleMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Percentage of infeasible moves.
-
std::string LSStatistics::toString() const¶
Returns a string representation of the statistics. Only allowed in states
S_Paused
orS_Stopped
. Useful for debugging or logging purposes.- Returns:
String representation.