LSStatistics Class¶
- class localsolver.LSStatistics¶
Statistics of the search.
Summary¶
Returns the LocalSolver object associated to these statistics. |
|
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. |
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.
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.
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.
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.
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.
- double GetPercentAcceptedMoves()¶
Deprecated since version 9.0: This parameter gives an inaccurate view of LocalSolver search.
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.
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.
Only allowed in states
Paused
orStopped
.- Returns
Percentage of rejected moves.