HxStatistics Class¶
-
class HxStatistics¶
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 Hexaly Optimizer search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search. |
|
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search. |
|
Returns a string representation of the statistics. |
Functions¶
-
int HxStatistics::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 HxStatistics::getNbIterations() const¶
Gets the number of iterations. Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of iterations.
-
long long HxStatistics::getNbMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of (attempted) moves.
-
long long HxStatistics::getNbAcceptedMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of accepted moves.
-
long long HxStatistics::getNbImprovingMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of improving moves.
-
long long HxStatistics::getNbRejectedMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of rejected moves.
-
long long HxStatistics::getNbInfeasibleMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Number of infeasible moves.
-
double HxStatistics::getPercentAcceptedMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Percentage of accepted moves.
-
double HxStatistics::getPercentImprovingMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Percentage of improving moves.
-
double HxStatistics::getPercentRejectedMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Percentage of rejected moves.
-
double HxStatistics::getPercentInfeasibleMoves() const¶
Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.
Only allowed in states
S_Paused
orS_Stopped
.- Returns:
Percentage of infeasible moves.
-
std::string HxStatistics::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.