Class ConstrainedCellFactory
- java.lang.Object
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.simplegrid.SimpleCellFactory
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.deoptim.DEOptimCellFactory
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.deoptim.constrained.ConstrainedCellFactory
-
- Direct Known Subclasses:
IntegralConstrainedCellFactory
public abstract class ConstrainedCellFactory extends DEOptimCellFactory
This defines a Differential Evolution operator that takes in account constraints.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ConstrainedCellFactory.ConstrainedCell
AConstrainedCell
is a chromosome for a constrained optimization problem.-
Nested classes/interfaces inherited from class dev.nm.solver.multivariate.geneticalgorithm.minimizer.deoptim.DEOptimCellFactory
DEOptimCellFactory.DeOptimCell
-
Nested classes/interfaces inherited from class dev.nm.solver.multivariate.geneticalgorithm.minimizer.simplegrid.SimpleCellFactory
SimpleCellFactory.SimpleCell
-
-
Field Summary
Fields Modifier and Type Field Description protected DEOptimCellFactory
unconstrainedFactory
a factory that defines the unconstrained Differential Evolution operators-
Fields inherited from class dev.nm.solver.multivariate.geneticalgorithm.minimizer.deoptim.DEOptimCellFactory
Cr, F
-
Fields inherited from class dev.nm.solver.multivariate.geneticalgorithm.minimizer.simplegrid.SimpleCellFactory
uniform
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConstrainedCellFactory(DEOptimCellFactory unconstrainedFactory)
Construct an instance of aConstrainedCellFactory
that define the constrained Differential Evolution operators.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ConstrainedCellFactory.ConstrainedCell
getSimpleCell(RealScalarFunction f, Vector x)
Override this method to put in whatever constraints in the minimization problem.void
setPopulation(List<Chromosome> population)
Set the current generation.-
Methods inherited from class dev.nm.solver.multivariate.geneticalgorithm.minimizer.deoptim.DEOptimCellFactory
Fmin, getBase, getOne, getPopulation
-
-
-
-
Field Detail
-
unconstrainedFactory
protected final DEOptimCellFactory unconstrainedFactory
a factory that defines the unconstrained Differential Evolution operators
-
-
Constructor Detail
-
ConstrainedCellFactory
protected ConstrainedCellFactory(DEOptimCellFactory unconstrainedFactory)
Construct an instance of aConstrainedCellFactory
that define the constrained Differential Evolution operators.- Parameters:
unconstrainedFactory
- a factory that defines the unconstrained Differential Evolution operators
-
-
Method Detail
-
setPopulation
public void setPopulation(List<Chromosome> population)
Description copied from class:DEOptimCellFactory
Set the current generation.- Overrides:
setPopulation
in classDEOptimCellFactory
- Parameters:
population
- the current population pool
-
getSimpleCell
public abstract ConstrainedCellFactory.ConstrainedCell getSimpleCell(RealScalarFunction f, Vector x)
Override this method to put in whatever constraints in the minimization problem.- Overrides:
getSimpleCell
in classSimpleCellFactory
- Parameters:
f
- the original objective functionx
- the original, unprocessed, unconstrained candidate solution- Returns:
- a constrained cell/chromosome
-
-