This page is for an old version of Hexaly Optimizer. We recommend that you update your version and read the documentation for the latest stable release.

HxStatistics Class

class HxStatistics

Statistics of the search.

Summary

Functions

getRunningTime

Gets the running time in seconds.

getNbIterations

Gets the number of iterations.

getNbMoves

Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.

getNbAcceptedMoves

Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.

getNbImprovingMoves

Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.

getNbRejectedMoves

Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.

getNbInfeasibleMoves

Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.

getPercentAcceptedMoves

Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.

getPercentImprovingMoves

Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.

getPercentRejectedMoves

Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.

getPercentInfeasibleMoves

Deprecated since version 9.0: This parameter gives an inaccurate view of Hexaly Optimizer search.

toString

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 or S_Stopped.

Returns:

Running time in seconds.

long long HxStatistics::getNbIterations() const

Gets the number of iterations. Only allowed in states S_Paused or S_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 or S_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 or S_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 or S_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 or S_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 or S_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 or S_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 or S_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 or S_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 or S_Stopped.

Returns:

Percentage of infeasible moves.

std::string HxStatistics::toString() const

Returns a string representation of the statistics. Only allowed in states S_Paused or S_Stopped. Useful for debugging or logging purposes.

Returns:

String representation.