Package localsolver
Class LSStatistics
- java.lang.Object
-
- localsolver.LSStatistics
-
public class LSStatistics extends java.lang.ObjectStatistics of the search.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)LocalSolvergetLocalSolver()Returns the LocalSolver object associated to these statistics.longgetNbAcceptedMoves()Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.longgetNbImprovingMoves()Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.longgetNbInfeasibleMoves()Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.longgetNbIterations()Gets the number of iterations.longgetNbMoves()Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.longgetNbRejectedMoves()Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.doublegetPercentAcceptedMoves()Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.doublegetPercentImprovingMoves()Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.doublegetPercentInfeasibleMoves()Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.doublegetPercentRejectedMoves()Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.intgetRunningTime()Gets the running time in seconds.inthashCode()java.lang.StringtoString()Returns a String representation of the statistics.
-
-
-
Method Detail
-
getLocalSolver
public LocalSolver getLocalSolver()
Returns the LocalSolver object associated to these statistics.- Returns:
- LocalSolver object.
-
getRunningTime
public 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 statesLSState.PausedorLSState.Stopped.- Returns:
- Running time in seconds.
-
getNbIterations
public long getNbIterations()
Gets the number of iterations. Only allowed in statesLSState.PausedorLSState.Stopped.- Returns:
- Number of iterations.
-
getNbMoves
@Deprecated public long getNbMoves()
Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.Only allowed in statesLSState.PausedorLSState.Stopped.- Returns:
- Number of (attempted) moves.
-
getNbAcceptedMoves
@Deprecated public long getNbAcceptedMoves()
Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.Only allowed in statesLSState.PausedorLSState.Stopped.- Returns:
- Number of accepted moves.
-
getNbImprovingMoves
@Deprecated public long getNbImprovingMoves()
Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.Only allowed in statesLSState.PausedorLSState.Stopped.- Returns:
- Number of improving moves.
-
getNbRejectedMoves
@Deprecated public long getNbRejectedMoves()
Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.Only allowed in statesLSState.PausedorLSState.Stopped.- Returns:
- Number of rejected moves.
-
getNbInfeasibleMoves
@Deprecated public long getNbInfeasibleMoves()
Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.Only allowed in statesLSState.PausedorLSState.Stopped.- Returns:
- Number of infeasible moves.
-
getPercentAcceptedMoves
@Deprecated public double getPercentAcceptedMoves()
Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.Only allowed in statesLSState.PausedorLSState.Stopped.- Returns:
- Percentage of accepted moves.
-
getPercentImprovingMoves
@Deprecated public double getPercentImprovingMoves()
Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.Only allowed in statesLSState.PausedorLSState.Stopped.- Returns:
- Percentage of improving moves.
-
getPercentRejectedMoves
@Deprecated public double getPercentRejectedMoves()
Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.Only allowed in statesLSState.PausedorLSState.Stopped.- Returns:
- Percentage of rejected moves.
-
getPercentInfeasibleMoves
@Deprecated public double getPercentInfeasibleMoves()
Deprecated.As of 9.0, this parameter gives an inaccurate view of LocalSolver search.Only allowed in statesLSState.PausedorLSState.Stopped.- Returns:
- Percentage of infeasible moves.
-
toString
public java.lang.String toString()
Returns a String representation of the statistics. Only allowed in statesLSState.PausedorLSState.Stopped. Useful for debugging or logging purposes.- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-