|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectiterator.AbstractIterator
iterator.AbstractOptimizer<T>
iterator.AbstractInitialSampleBasedOptimizer<T>
iterator.AbstractPopulationOptimizer<T>
T - the type of OptimizationProblem being solved.public abstract class AbstractPopulationOptimizer<T extends BoundConstrainedProblem>
Optimization algorithm that evaluates an entire population at each iteration.
| Field Summary | |
|---|---|
protected double |
currentBestG
|
protected double |
lastBestG
|
protected DataBlock |
nextBlock
|
| Fields inherited from class iterator.AbstractInitialSampleBasedOptimizer |
|---|
uniform |
| Fields inherited from class iterator.AbstractOptimizer |
|---|
doubleFormat, funEvalCount, logWriter |
| Fields inherited from class iterator.AbstractIterator |
|---|
diagnosticString, iter |
| Constructor Summary | |
|---|---|
AbstractPopulationOptimizer()
|
|
| Method Summary | |
|---|---|
protected abstract cern.colt.matrix.DoubleMatrix2D |
computeNextPoints()
Computes the next set of candidate solutions. |
protected void |
evaluatePoints(cern.colt.matrix.DoubleMatrix2D nextPoints)
Evaluates the objective (and constraints) given set of points. |
int |
getPopulationSize()
Returns the population size. |
void |
init()
Initialization routine |
void |
setInitialSamples(DataBlock block)
Sets the given block of samples as the set of initial samples. |
void |
setInitialSamples(cern.colt.matrix.DoubleMatrix2D initialSamples)
|
void |
setInitialSamples(cern.colt.matrix.DoubleMatrix2D x,
cern.colt.matrix.DoubleMatrix2D y)
Sets the initial samples as per the given inputs and outputs. |
void |
setPopulationSize(int populationSize)
Sets the population size. |
void |
singleIteration()
Performs a single iteration. |
| Methods inherited from class iterator.AbstractInitialSampleBasedOptimizer |
|---|
getRandomSeed, makeInitialSamples, setRandomSeed |
| Methods inherited from class iterator.AbstractOptimizer |
|---|
clear, dataAdded, dataAdded, dataRemoved, dataRemoved, getDataHandler, getFunEvalCount, getLogFileName, getMaxFunEval, getProblem, isTerminated, iterate, setDataHandler, setFunEvalCount, setLogFileName, setMaxFunEval, setProblem, updateDiagnostics, writeInitialRunLog |
| Methods inherited from class iterator.AbstractIterator |
|---|
isVerbose, printDiagnostics, setVerbose |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface iterator.LoggableIterator |
|---|
getLogFileName, setLogFileName |
| Methods inherited from interface iterator.Iterable |
|---|
isTerminated, iterate |
| Field Detail |
|---|
protected double currentBestG
protected double lastBestG
protected DataBlock nextBlock
| Constructor Detail |
|---|
public AbstractPopulationOptimizer()
| Method Detail |
|---|
public int getPopulationSize()
public void init()
Iterable
init in interface Iterableinit in class AbstractInitialSampleBasedOptimizer<T extends BoundConstrainedProblem>public void setInitialSamples(DataBlock block)
InitialSamplesSettable
block - the given DataBlock.public void setInitialSamples(cern.colt.matrix.DoubleMatrix2D initialSamples)
initialSamples - initial matrix of points, stored row-wise.
public void setInitialSamples(cern.colt.matrix.DoubleMatrix2D x,
cern.colt.matrix.DoubleMatrix2D y)
InitialSamplesSettable
x - the given set of inputs.y - the given set of outputs.public void setPopulationSize(int populationSize)
populationSize - the given population size.public void singleIteration()
Iterable
protected abstract cern.colt.matrix.DoubleMatrix2D computeNextPoints()
DoubleMatrix2D containing design points row-wise.protected void evaluatePoints(cern.colt.matrix.DoubleMatrix2D nextPoints)
nextPoints - the given set of inputs, row-wise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||