Package isula.aco
Class PerformanceTracker<C,E extends Environment>
java.lang.Object
isula.aco.PerformanceTracker<C,E>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
long
void
setGeneratedSolutions
(Long generatedSolutions) void
updateIterationPerformance
(AntColony<C, E> antColony, int iteration, long iterationTimeInSeconds, E environment) Updates the information of the best solution produced with the solutions produced by the Colony.
-
Constructor Details
-
PerformanceTracker
public PerformanceTracker()
-
-
Method Details
-
updateIterationPerformance
public void updateIterationPerformance(AntColony<C, E> antColony, int iteration, long iterationTimeInSeconds, E environment) Updates the information of the best solution produced with the solutions produced by the Colony.- Parameters:
iterationTimeInSeconds
- Time spent during the iteration.environment
- Environment where the solutions where produced.
-
getBestSolution
-
getBestSolutionCost
public double getBestSolutionCost() -
getBestSolutionAsString
-
getGeneratedSolutions
public long getGeneratedSolutions() -
setGeneratedSolutions
-