Class NeighborGenericImplementation

    • Field Detail

      • random

        protected final org.opt4j.core.common.random.Rand random
    • Constructor Detail

      • NeighborGenericImplementation

        @Inject
        protected NeighborGenericImplementation​(org.opt4j.core.common.random.Rand random)
        Parameters:
        random - the random number generator
    • Method Detail

      • neighbor

        public void neighbor​(org.opt4j.core.Genotype genotype)
        Description copied from interface: Neighbor
        Moves the Genotype to a neighbor.
        Specified by:
        neighbor in interface Neighbor<org.opt4j.core.Genotype>
        Parameters:
        genotype - the Genotype to be changed
      • neighborComposite

        protected void neighborComposite​(org.opt4j.core.genotype.CompositeGenotype<?,​?> genotype)