Package org.opt4j.operators.neighbor
Interface Neighbor<G extends org.opt4j.core.Genotype>
-
- Type Parameters:
G
- the type of genotype
- All Superinterfaces:
org.opt4j.core.optimizer.Operator<G>
- All Known Subinterfaces:
NeighborInteger
,NeighborPermutation
- All Known Implementing Classes:
NeighborBoolean
,NeighborDouble
,NeighborGenericImplementation
,NeighborIntegerRandom
,NeighborPermutationInsert
,NeighborPermutationMixed
,NeighborPermutationRevert
,NeighborPermutationSwap
public interface Neighbor<G extends org.opt4j.core.Genotype> extends org.opt4j.core.optimizer.Operator<G>
TheNeighbor
operator as it is used for Simulated Annealing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>>
getOperatorType()
void
neighbor(G genotype)
Moves theGenotype
to a neighbor.
-
-
-
Method Detail
-
neighbor
void neighbor(G genotype)
Moves theGenotype
to a neighbor.- Parameters:
genotype
- theGenotype
to be changed
-
getOperatorType
default java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>> getOperatorType()
- Specified by:
getOperatorType
in interfaceorg.opt4j.core.optimizer.Operator<G extends org.opt4j.core.Genotype>
-
-