public class ConstrainedCellFactory.ConstrainedCell extends DEOptimCellFactory.DeOptimCell
ConstrainedCell
is a chromosome for a constrained optimization problem.
It encodes the real valued objective function, a candidate solution, as well as the constraints.Modifier | Constructor and Description |
---|---|
protected |
ConstrainedCell(RealScalarFunction f,
Vector x) |
Modifier and Type | Method and Description |
---|---|
Chromosome |
crossover(Chromosome obj)
Crossover by taking the midpoint.
|
Chromosome |
mutate()
Mutate by random disturbs in a neighborhood.
|
protected ConstrainedCell(RealScalarFunction f, Vector x)
public Chromosome mutate()
SimpleCellFactory.SimpleCell
mutate
in interface Chromosome
mutate
in class DEOptimCellFactory.DeOptimCell
public Chromosome crossover(Chromosome obj)
SimpleCellFactory.SimpleCell
crossover
in interface Chromosome
crossover
in class DEOptimCellFactory.DeOptimCell
obj
- another chromosomeCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.