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 classConstrainedCellFactory.ConstrainedCellAConstrainedCellis 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 DEOptimCellFactoryunconstrainedFactorya 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 protectedConstrainedCellFactory(DEOptimCellFactory unconstrainedFactory)Construct an instance of aConstrainedCellFactorythat define the constrained Differential Evolution operators.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ConstrainedCellFactory.ConstrainedCellgetSimpleCell(RealScalarFunction f, Vector x)Override this method to put in whatever constraints in the minimization problem.voidsetPopulation(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 aConstrainedCellFactorythat 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:DEOptimCellFactorySet the current generation.- Overrides:
setPopulationin 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:
getSimpleCellin classSimpleCellFactory- Parameters:
f- the original objective functionx- the original, unprocessed, unconstrained candidate solution- Returns:
- a constrained cell/chromosome
-
-