Class DEOptimCellFactory.DeOptimCell
- 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
-
- All Implemented Interfaces:
Chromosome,Comparable<Chromosome>
- Direct Known Subclasses:
ConstrainedCellFactory.ConstrainedCell,Rand1Bin.DeRand1BinCell
- Enclosing class:
- DEOptimCellFactory
public abstract class DEOptimCellFactory.DeOptimCell extends SimpleCellFactory.SimpleCell
ADeOptimCellis a chromosome for a real valued function (an optimization problem) and a candidate solution. It is anabstractclass so the subclasses must implement the two genetic operations. The specific Differential Evolution rules are implemented by these two genetic operations.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeOptimCell(RealScalarFunction f, Vector x)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Chromosomecrossover(Chromosome obj)Crossover by taking the midpoint.abstract Chromosomemutate()Mutate by random disturbs in a neighborhood.
-
-
-
Constructor Detail
-
DeOptimCell
protected DeOptimCell(RealScalarFunction f, Vector x)
-
-
Method Detail
-
mutate
public abstract Chromosome mutate()
Description copied from class:SimpleCellFactory.SimpleCellMutate by random disturbs in a neighborhood.- Specified by:
mutatein interfaceChromosome- Overrides:
mutatein classSimpleCellFactory.SimpleCell- Returns:
- a mutant chromosome
-
crossover
public abstract Chromosome crossover(Chromosome obj)
Description copied from class:SimpleCellFactory.SimpleCellCrossover by taking the midpoint.- Specified by:
crossoverin interfaceChromosome- Overrides:
crossoverin classSimpleCellFactory.SimpleCell- Parameters:
obj- another chromosome- Returns:
- a hybrid chromosome
-
-