public abstract class DEOptimCellFactory extends SimpleCellFactory
DEOptimCellFactory
produces DEOptimCellFactory.DeOptimCells.
A DEOptimCellFactory.DeOptimCell is a chromosome for a real valued function (an optimization problem)
and a candidate solution.
They together define the two genetic operations of an Differential Evolution implementation.
Modifier and Type | Class and Description |
---|---|
class |
DEOptimCellFactory.DeOptimCell
A
DeOptimCell is a chromosome for a real valued function (an optimization problem)
and a candidate solution. |
SimpleCellFactory.SimpleCell
Modifier and Type | Field and Description |
---|---|
protected double |
Cr
the crossover probability
|
protected double |
F
the scaling factor
|
uniform
Modifier | Constructor and Description |
---|---|
protected |
DEOptimCellFactory(DEOptimCellFactory that)
Copy constructor.
|
protected |
DEOptimCellFactory(double Cr,
double F,
RandomLongGenerator uniform)
Construct an instance of a
DEOptimCellFactory . |
Modifier and Type | Method and Description |
---|---|
static double |
Fmin(double Cr,
int nPopulation)
Compute the F critical value.
|
DEOptimCellFactory.DeOptimCell |
getBase()
Pick a base chromosome from the population.
|
DEOptimCellFactory.DeOptimCell |
getOne()
Pick a random chromosome from the population.
|
protected List<Chromosome> |
getPopulation()
Get the current generation.
|
void |
setPopulation(List<Chromosome> population)
Set the current generation.
|
getSimpleCell
protected final double Cr
protected final double F
protected DEOptimCellFactory(double Cr, double F, RandomLongGenerator uniform)
DEOptimCellFactory
.Cr
- the crossover probabilityF
- the scaling factoruniform
- a uniform random number generatorprotected DEOptimCellFactory(DEOptimCellFactory that)
that
- a DEOptimCellFactory
public static double Fmin(double Cr, int nPopulation)
Cr
- the crossover probabilitynPopulation
- the population sizepublic void setPopulation(List<Chromosome> population)
population
- the current population poolprotected List<Chromosome> getPopulation()
public DEOptimCellFactory.DeOptimCell getBase()
public DEOptimCellFactory.DeOptimCell getOne()
Copyright © 2010-2017 Numerical Method Incorporation Limited. All Rights Reserved.