SolutionType - solution type of the analyzed problempublic class SearchRunResults<SolutionType extends Solution> extends Object
| Constructor and Description |
|---|
SearchRunResults()
Create an empty instance.
|
SearchRunResults(SearchRunResults<SolutionType> run)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SolutionType |
getBestSolution()
Get the best solution found during this search run
|
long |
getNumUpdates()
Get the number of registered best solution updates.
|
List<Long> |
getTimes()
Get a list of the update times (unmodifiable view).
|
List<Double> |
getValues()
Get a list of the values of the newly found best solutions (unmodifiable view).
|
void |
updateBestSolution(long time,
double value,
SolutionType newBestSolution)
Update the best found solution.
|
public SearchRunResults()
public SearchRunResults(SearchRunResults<SolutionType> run)
run - search run results to be copiedpublic void updateBestSolution(long time,
double value,
SolutionType newBestSolution)
time - time at which the solution was found (milliseconds)value - value of the solutionnewBestSolution - newly found best solutionpublic long getNumUpdates()
public SolutionType getBestSolution()
public List<Long> getTimes()
Copyright © 2016. All rights reserved.