public class NeighborIntegerRandom extends java.lang.Object implements NeighborInteger
NeighborIntegerRandom
selects on element of an
IntegerGenotype
and changes it. The neighbor is created randomly
between the lower and upper bounds.Modifier and Type | Field and Description |
---|---|
protected java.util.Random |
random |
Constructor and Description |
---|
NeighborIntegerRandom(org.opt4j.core.common.random.Rand random)
Constructs a
NeighborIntegerRandom . |
Modifier and Type | Method and Description |
---|---|
void |
neighbor(org.opt4j.core.genotype.IntegerGenotype genotype)
Moves the
Genotype to a neighbor. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperatorType
@Inject public NeighborIntegerRandom(org.opt4j.core.common.random.Rand random)
NeighborIntegerRandom
.random
- the random number generator