|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectiterator.AbstractIterator
iterator.AbstractOptimizer<T>
iterator.AbstractPointOptimizer<T>
iterator.TwoStageOptimizer<T,V>
T - the type of optimization problem being solved.public class TwoStageOptimizer<T extends OptimizationProblem,V extends AbstractOptimizer<? extends BoundConstrainedProblem>>
An optimization algorithm that proceeds by first building approximation models of the objective and constraints, and then solving an auxiliary optimization problem whose objective is to find the point that holds the most promise.
| Field Summary |
|---|
| Fields inherited from class iterator.AbstractOptimizer |
|---|
doubleFormat, funEvalCount, logWriter |
| Fields inherited from class iterator.AbstractIterator |
|---|
diagnosticString, iter |
| Constructor Summary | |
|---|---|
TwoStageOptimizer()
|
|
| Method Summary | |
|---|---|
protected double[] |
computeNextPoint()
Computes the next design to be evaluated. |
V |
getAuxiliaryOptimizer()
Returns the auxiliary optimizer, which is typically some simple optimizer that can handle multi-modal functions, perhaps at the cost of function evaluations. |
int |
getInitialSampleCount()
Returns the the number of initial samples. |
int |
getRandomSeed()
|
void |
init()
Initialization routine |
cern.colt.matrix.DoubleMatrix2D |
makeInitialSamples(int sampleCount)
Makes the desired number of initial samples. |
void |
setAuxiliaryOptimizer(V auxiliaryOptimizer)
Sets the auxiliary optimizer. |
void |
setInitialSampleCount(int initialSampleCount)
Sets the number of initial samples. |
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 |
setRandomSeed(int randomSeed)
Sets the randomSeed. |
protected void |
updateDiagnostics()
Provides access to the diagnosticString, so that the user has
flexibility over multiple methods accessing this string at different times. |
protected void |
writeInitialRunLog()
|
| Methods inherited from class iterator.AbstractPointOptimizer |
|---|
singleIteration |
| Methods inherited from class iterator.AbstractOptimizer |
|---|
clear, dataAdded, dataAdded, dataRemoved, dataRemoved, getDataHandler, getFunEvalCount, getLogFileName, getMaxFunEval, getProblem, isTerminated, iterate, setDataHandler, setFunEvalCount, setLogFileName, setMaxFunEval, setProblem |
| 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 |
| Constructor Detail |
|---|
public TwoStageOptimizer()
| Method Detail |
|---|
public V getAuxiliaryOptimizer()
public int getInitialSampleCount()
public int getRandomSeed()
public void init()
Iterable
init in interface Iterableinit in class AbstractOptimizer<T extends OptimizationProblem>public cern.colt.matrix.DoubleMatrix2D makeInitialSamples(int sampleCount)
InitialSamplesSettable
makeInitialSamples in interface InitialSamplesSettablex-values of the desired number of
initial samples.public void setAuxiliaryOptimizer(V auxiliaryOptimizer)
auxiliaryOptimizer - the given auxiliary optimizer.public void setInitialSampleCount(int initialSampleCount)
initialSampleCount - the given number of initial samples.public void setInitialSamples(DataBlock block)
InitialSamplesSettable
setInitialSamples in interface InitialSamplesSettableblock - the given DataBlock.public void setInitialSamples(cern.colt.matrix.DoubleMatrix2D initialSamples)
setInitialSamples in interface InitialSamplesSettableinitialSamples - initial matrix of points, stored row-wise.
public void setInitialSamples(cern.colt.matrix.DoubleMatrix2D x,
cern.colt.matrix.DoubleMatrix2D y)
InitialSamplesSettable
setInitialSamples in interface InitialSamplesSettablex - the given set of inputs.y - the given set of outputs.public void setRandomSeed(int randomSeed)
InitialSamplesSettable
setRandomSeed in interface InitialSamplesSettablerandomSeed - the given randomSeed.protected double[] computeNextPoint()
AbstractPointOptimizer
computeNextPoint in class AbstractPointOptimizer<T extends OptimizationProblem>protected void updateDiagnostics()
AbstractIteratordiagnosticString, so that the user has
flexibility over multiple methods accessing this string at different times.
updateDiagnostics in class AbstractOptimizer<T extends OptimizationProblem>protected void writeInitialRunLog()
writeInitialRunLog in class AbstractOptimizer<T extends OptimizationProblem>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||