LSStatistics Class¶
-
class
localsolver.
LSStatistics
¶ Statistics of the search.
Summary¶
GetLocalSolver |
Returns the LocalSolver object associated to these statistics. |
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 LocalSolver search. |
GetNbAcceptedMoves |
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
GetNbImprovingMoves |
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
GetNbRejectedMoves |
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
GetNbInfeasibleMoves |
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
GetPercentAcceptedMoves |
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
GetPercentImprovingMoves |
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
GetPercentRejectedMoves |
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
GetPercentInfeasibleMoves |
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search. |
GetInfo |
Returns useful info about the search while running. |
ToString |
Returns a string representation of the statistics. |
Instance methods¶
-
LocalSolver
GetLocalSolver
()¶ Returns the LocalSolver object associated to these statistics.
Returns: LocalSolver object
-
int
GetRunningTime
()¶ 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
Plaused
orStopped
.Returns: Running time in seconds.
-
long
GetNbMoves
()¶ Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Gets the number of (attempted) moves. This corresponds to the number of explored solutions (feasible or infeasible). Only allowed in states
Paused
orStopped
.Returns: Number of (attempted) moves.
-
long
GetNbAcceptedMoves
()¶ Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Gets the number of accepted moves. Only allowed in states
Paused
orStopped
.Returns: Number of accepted moves.
-
long
GetNbImprovingMoves
()¶ Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Gets the number of accepted moves having improved the cost of the current solution. Improving moves are a part of accepted moves. Only allowed in states
Paused
orStopped
.Returns: Number of improving moves.
-
long
GetNbRejectedMoves
()¶ Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Gets the number of rejected moves. Only allowed in states
Paused
orStopped
.Returns: Number of rejected moves.
-
long
GetNbInfeasibleMoves
()¶ Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Gets the number of moves leading to infeasible solutions. Infeasible moves are a part of rejected moves. Only allowed in states
Paused
orStopped
.Returns: Number of infeasible moves.
-
double
GetPercentAcceptedMoves
()¶ Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Gives the percentage of accepted moves relative to the number of moves. Only allowed in states
Paused
orStopped
.Returns: Percentage of accepted moves.
-
double
GetPercentImprovingMoves
()¶ Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Gives the percentage of improving moves relative to the number of moves. Only allowed in states
Paused
orStopped
.Returns: Percentage of improving moves.
-
double
GetPercentRejectedMoves
()¶ Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Gives the percentage of rejected moves relative to the number of moves. Only allowed in states
Paused
orStopped
.Returns: Percentage of rejected moves.
-
double
GetPercentInfeasibleMoves
()¶ Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
Gives the percentage of infeasible moves relative to the number of moves. Only allowed in states
Paused
orStopped
.Returns: Percentage of infeasible moves.