public class Trajectory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Trajectory.Point
Representation of a single point along the optimisation run
|
Constructor and Description |
---|
Trajectory(java.lang.String seed)
makes a new empty trajectory with the given seed
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(Trajectory.Point newPoint)
Inserts a new point onto the end of this trajectory
|
Trajectory.Point |
getLastPoint()
Gets the last point in the trajectory, ie the best one
|
Trajectory.Point |
getNextPoint(double time)
Gets the next point in the trajectory after the given time
|
int |
getNumEvaluations()
Gets the total number of evaluations that were performed
|
int |
getNumMemOutEvaluations()
Gets the number of evaluations that hit the memory limit (-1 if not recorded)
|
int |
getNumTimedOutEvaluations()
Gets the number of evaluations that timed out (-1 if not recorded)
|
Trajectory.Point |
getPointAtTime(double time)
Gets the point in the trajectory that's closest to this time
|
java.util.List<Trajectory.Point> |
getPoints()
Gets all the points inside this trajectory
|
java.lang.String |
getSeed()
Gets the seed for this trajectory
|
void |
setEvaluationCounts(int numTotalEvaluations,
int numMemOutEvaluations,
int numTimeOutEvaluations)
Set all the statistics regarding the number of evaluations performed for this trajectory
|
java.lang.String |
toString() |
void |
truncateToTime(float maxTime) |
public Trajectory(java.lang.String seed)
seed
- The seed.public java.lang.String getSeed()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<Trajectory.Point> getPoints()
public void addPoint(Trajectory.Point newPoint)
newPoint
- The new point.public Trajectory.Point getPointAtTime(double time)
time
- The time for the point.public Trajectory.Point getNextPoint(double time)
time
- The time before the point.public Trajectory.Point getLastPoint()
public void truncateToTime(float maxTime)
public void setEvaluationCounts(int numTotalEvaluations, int numMemOutEvaluations, int numTimeOutEvaluations)
numTotalEvaluations
- The total number of evaluations.numMemOutEvaluations
- The number of evaluations with memout errors.numTimeOutEvaluations
- The number of evaluations with timeout
errors.public int getNumEvaluations()
public int getNumMemOutEvaluations()
public int getNumTimedOutEvaluations()