Class ConstrainedCellFactory.ConstrainedCell
- 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.constrained.ConstrainedCellFactory.ConstrainedCell
-
- All Implemented Interfaces:
Chromosome,Comparable<Chromosome>
- Enclosing class:
- ConstrainedCellFactory
public class ConstrainedCellFactory.ConstrainedCell extends DEOptimCellFactory.DeOptimCell
AConstrainedCellis a chromosome for a constrained optimization problem. It encodes the real valued objective function, a candidate solution, as well as the constraints.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConstrainedCell(RealScalarFunction f, Vector x)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Chromosomecrossover(Chromosome obj)Crossover by taking the midpoint.Chromosomemutate()Mutate by random disturbs in a neighborhood.
-
-
-
Constructor Detail
-
ConstrainedCell
protected ConstrainedCell(RealScalarFunction f, Vector x)
-
-
Method Detail
-
mutate
public Chromosome mutate()
Description copied from class:SimpleCellFactory.SimpleCellMutate by random disturbs in a neighborhood.- Specified by:
mutatein interfaceChromosome- Specified by:
mutatein classDEOptimCellFactory.DeOptimCell- Returns:
- a mutant chromosome
-
crossover
public Chromosome crossover(Chromosome obj)
Description copied from class:SimpleCellFactory.SimpleCellCrossover by taking the midpoint.- Specified by:
crossoverin interfaceChromosome- Specified by:
crossoverin classDEOptimCellFactory.DeOptimCell- Parameters:
obj- another chromosome- Returns:
- a hybrid chromosome
-
-