Package org.uma.jmetal.algorithm.impl
Class DefaultLocalSearch<S extends Solution<?>>
java.lang.Object
org.uma.jmetal.algorithm.impl.DefaultLocalSearch<S>
- Type Parameters:
S- Solution
- All Implemented Interfaces:
java.io.Serializable,java.lang.Runnable,Algorithm<S>,DescribedEntity
public class DefaultLocalSearch<S extends Solution<?>> extends java.lang.Object implements Algorithm<S>
Abstract class representing a local search algorithm
- Author:
- Antonio J. Nebro
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DefaultLocalSearch(int maxEvaluations, Problem<S> problem, MutationOperator<S> mutationOperator, java.util.Comparator<S> comparator) -
Method Summary
Modifier and Type Method Description java.util.Comparator<S>getComparator()java.lang.StringgetDescription()MutationOperator<S>getMutationOperator()java.lang.StringgetName()Problem<S>getProblem()SgetResult()voidrun()
-
Constructor Details
-
DefaultLocalSearch
public DefaultLocalSearch(int maxEvaluations, Problem<S> problem, MutationOperator<S> mutationOperator, java.util.Comparator<S> comparator)
-
-
Method Details
-
getProblem
-
getMutationOperator
-
getComparator
-
getResult
-
run
public void run() -
getName
public java.lang.String getName()- Specified by:
getNamein interfaceDescribedEntity- Returns:
- the name of the
DescribedEntity
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin interfaceDescribedEntity- Returns:
- the description of the
DescribedEntity
-