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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidneighbor(IntegerGenotype genotype) Moves theGenotypeto a neighbor.
-
Field Details
-
random
-
-
Constructor Details
-
NeighborIntegerRandom
Constructs aNeighborIntegerRandom.- Parameters:
random- the random number generator
-
-
Method Details