Package org.opt4j.operator.neighbor
Class NeighborIntegerRandom
java.lang.Object
org.opt4j.operator.neighbor.NeighborIntegerRandom
- All Implemented Interfaces:
Operator<IntegerGenotype>
,Neighbor<IntegerGenotype>
,NeighborInteger
The
NeighborIntegerRandom
selects on element of an
IntegerGenotype
and changes it. The neighbor is created randomly
between the lower and upper bounds.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
neighbor
(IntegerGenotype genotype) Moves theGenotype
to a neighbor.
-
Field Details
-
random
-
-
Constructor Details
-
NeighborIntegerRandom
Constructs aNeighborIntegerRandom
.- Parameters:
random
- the random number generator
-
-
Method Details