Class RandomSearchAlgorithm<S extends Solution<?>>
java.lang.Object
org.uma.jmetal.component.algorithm.RandomSearchAlgorithm<S>
- Type Parameters:
S- Solution
- All Implemented Interfaces:
Serializable,Runnable,Algorithm<List<S>>
public class RandomSearchAlgorithm<S extends Solution<?>>
extends Object
implements Algorithm<List<S>>
Class representing a random search algorithm. It implements the
Algorithm interface by
applying a component-based approach.- Author:
- Antonio J. Nebro (ajnebro@uma.es)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NonDominatedSolutionListArchive<S> protected Evaluation<S> protected intprotected longprotected Stringprotected Observable<Map<String, Object>> protected SolutionsCreation<S> protected Terminationprotected long -
Constructor Summary
ConstructorsConstructorDescriptionRandomSearchAlgorithm(String name, SolutionsCreation<S> solutionsCreation, Evaluation<S> evaluation, Termination termination) Constructor -
Method Summary
-
Field Details
-
termination
-
solutionsCreation
-
evaluation
-
attributes
-
initTime
protected long initTime -
totalComputingTime
protected long totalComputingTime -
evaluations
protected int evaluations -
observable
-
name
-
archive
-
-
Constructor Details
-
RandomSearchAlgorithm
public RandomSearchAlgorithm(String name, SolutionsCreation<S> solutionsCreation, Evaluation<S> evaluation, Termination termination) Constructor- Parameters:
name-termination-
-
-
Method Details
-
run
-
initProgress
protected void initProgress() -
updateProgress
protected void updateProgress() -
updateBestFoundSolutions
-
bestSolutions
-
result
-
name
-
description
- Specified by:
descriptionin interfaceAlgorithm<S extends Solution<?>>
-
evaluations
public int evaluations() -
archive
-
getObservable
-
attributes
-
totalComputingTime
public long totalComputingTime() -
currentComputingTime
public long currentComputingTime()
-