public class LSStatistics
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInfo()
Returns useful info about the search while running.
|
LocalSolver |
getLocalSolver()
Returns the LocalSolver object associated to these statistics.
|
long |
getNbAcceptedMoves()
Gets the number of accepted moves.
|
long |
getNbImprovingMoves()
Gets the number of accepted moves having improved the cost of the current
solution.
|
long |
getNbInfeasibleMoves()
Gets the number of moves leading to infeasible solutions.
|
long |
getNbIterations()
Gets the number of iterations.
|
long |
getNbMoves()
Gets the number of (attempted) moves.
|
long |
getNbRejectedMoves()
Gets the number of rejected moves.
|
double |
getPercentAcceptedMoves()
Gives the percentage of accepted moves relative to the number of moves.
|
double |
getPercentImprovingMoves()
Gives the percentage of improving moves relative to the number of moves.
|
double |
getPercentInfeasibleMoves()
Gives the percentage of infeasible moves relative to the number of moves.
|
double |
getPercentRejectedMoves()
Gives the percentage of rejected moves relative to the number of moves.
|
int |
getRunningTime()
Gets the running time in seconds.
|
int |
hashCode() |
java.lang.String |
toString()
Returns a String representation of the statistics.
|
public LocalSolver getLocalSolver()
public int getRunningTime()
LSState.Paused or LSState.Stopped.public long getNbIterations()
LSState.Paused or LSState.Stopped.public long getNbMoves()
LSState.Paused or LSState.Stopped.public long getNbAcceptedMoves()
LSState.Paused or LSState.Stopped.public long getNbImprovingMoves()
LSState.Paused or LSState.Stopped.public long getNbRejectedMoves()
LSState.Paused or LSState.Stopped.public long getNbInfeasibleMoves()
LSState.Paused or LSState.Stopped.public double getPercentAcceptedMoves()
LSState.Paused or LSState.Stopped.public double getPercentImprovingMoves()
LSState.Paused or LSState.Stopped.public double getPercentRejectedMoves()
LSState.Paused or LSState.Stopped.public double getPercentInfeasibleMoves()
LSState.Paused or LSState.Stopped.public java.lang.String toString()
LSState.Paused or LSState.Stopped. Useful for debugging
or logging purposes.toString in class java.lang.Objectpublic java.lang.String getInfo()
LSState.Paused or LSState.Stopped. Useful for debugging
or logging purposes. Here are some explanations about the output string:
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object