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
AConstrainedCell
is 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 protected
ConstrainedCell(RealScalarFunction f, Vector x)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Chromosome
crossover(Chromosome obj)
Crossover by taking the midpoint.Chromosome
mutate()
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.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 Chromosome 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
-
-