Class Rand1Bin.DeRand1BinCell
- java.lang.Object
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.simplegrid.RealScalarFunctionChromosome
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.simplegrid.SimpleCellFactory.SimpleCell
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.deoptim.DEOptimCellFactory.DeOptimCell
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.deoptim.Rand1Bin.DeRand1BinCell
-
- All Implemented Interfaces:
Chromosome
,Comparable<Chromosome>
- Direct Known Subclasses:
Best2Bin.DeBest2BinCell
- Enclosing class:
- Rand1Bin
public class Rand1Bin.DeRand1BinCell extends DEOptimCellFactory.DeOptimCell
This chromosome defines the Rand-1-Bin rule. The two genetic operations of this chromosome are:- mutation by adding a scaled, randomly sampled vector difference to a third vector (differential mutation);
- crossover by performing a uniform crossover (discrete recombination).
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DeRand1BinCell(RealScalarFunction f, Vector x)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rand1Bin.DeRand1BinCell
crossover(Chromosome obj)
Crossover by taking the midpoint.Rand1Bin.DeRand1BinCell
mutate()
Mutate by random disturbs in a neighborhood.
-
-
-
Constructor Detail
-
DeRand1BinCell
protected DeRand1BinCell(RealScalarFunction f, Vector x)
-
-
Method Detail
-
mutate
public Rand1Bin.DeRand1BinCell mutate()
Description copied from class:SimpleCellFactory.SimpleCell
Mutate by random disturbs in a neighborhood.- Specified by:
mutate
in interfaceChromosome
- Specified by:
mutate
in classDEOptimCellFactory.DeOptimCell
- Returns:
- a mutant chromosome
-
crossover
public Rand1Bin.DeRand1BinCell crossover(Chromosome obj)
Description copied from class:SimpleCellFactory.SimpleCell
Crossover by taking the midpoint.- Specified by:
crossover
in interfaceChromosome
- Specified by:
crossover
in classDEOptimCellFactory.DeOptimCell
- Parameters:
obj
- another chromosome- Returns:
- a hybrid chromosome
-
-