|
||||||||||
| 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.TwoStageAlgoBuilder<T,V,W>
public class TwoStageAlgoBuilder<T extends OptimizationProblem,V extends BoundConstrainedDiviner,W extends AbstractOptimizer<BoundConstrainedProblem>>
Sets up a two-stage optimization algorithm and solves it. Might have multifidelity problems, constrained problems, various kinds of Diviners, etc., but the overall algorithm is the same. Uses the Java 'builder' pattern, which is standard for setting up a complex object and then using it. The best way to instantiate and use this class is by using the spring framework.
| Field Summary |
|---|
| Fields inherited from class iterator.AbstractOptimizer |
|---|
doubleFormat, funEvalCount, logWriter |
| Fields inherited from class iterator.AbstractIterator |
|---|
diagnosticString, iter |
| Constructor Summary | |
|---|---|
TwoStageAlgoBuilder()
|
|
| Method Summary | |
|---|---|
protected double[] |
computeNextPoint()
Computes the next design to be evaluated. |
java.util.ArrayList<ApproxModel> |
getApproxModels()
Returns the list of approximation models. |
W |
getAuxOptimizer()
Returns the auxiliary optimizer. |
BoundConstrainedProblem |
getAuxProblem()
Returns the auxiliary problem. |
int |
getCalibrationInterval()
|
V |
getDiviner()
Returns the diviner. |
protected int |
getFunEvalCount()
Returns the number of function evaluations. |
TwoStageOptimizer<T,W> |
getMainOptimizer()
Returns the main optimizer. |
T |
getProblem()
Returns the main problem. |
int |
getRandomSeed()
Returns the random seed. |
void |
init()
Initialization routine |
protected BoundConstrainedProblem |
makeAuxProblem()
Makes the auxiliary optimization problem. |
protected void |
printDiagnostics()
Prints diagnostic output. |
void |
setApproxModels(java.util.ArrayList<ApproxModel> approxModels)
Sets the list of approximation models. |
void |
setAuxOptimizer(W auxOptimizer)
Sets the auxiliary optimizer. |
void |
setAuxProblem(BoundConstrainedProblem auxProblem)
Sets the auxiliary optimization problem. |
void |
setCalibrationInterval(int calibrationInterval)
|
void |
setDiviner(V diviner)
Sets the diviner. |
protected void |
setFunEvalCount(int funEvalCount)
Sets the number of function evaluations. |
void |
setMainOptimizer(TwoStageOptimizer<T,W> mainOptimizer)
Sets the main optimizer. |
void |
setProblem(T mainProblem)
Sets the problem. |
void |
setRandomSeed(int randomSeed)
Sets the random seed. |
protected void |
update()
Any updates that need to be performed at each iteration are encapsulated in this routine. |
| Methods inherited from class iterator.AbstractPointOptimizer |
|---|
singleIteration |
| Methods inherited from class iterator.AbstractOptimizer |
|---|
clear, dataAdded, dataAdded, dataRemoved, dataRemoved, getDataHandler, getLogFileName, getMaxFunEval, isTerminated, iterate, setDataHandler, setLogFileName, setMaxFunEval, updateDiagnostics, writeInitialRunLog |
| Methods inherited from class iterator.AbstractIterator |
|---|
isVerbose, 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, singleIteration |
| Constructor Detail |
|---|
public TwoStageAlgoBuilder()
| Method Detail |
|---|
public java.util.ArrayList<ApproxModel> getApproxModels()
public W getAuxOptimizer()
public BoundConstrainedProblem getAuxProblem()
public int getCalibrationInterval()
public V getDiviner()
public TwoStageOptimizer<T,W> getMainOptimizer()
public T getProblem()
getProblem in class AbstractOptimizer<T extends OptimizationProblem>public int getRandomSeed()
RepeatableLoggableIterator
getRandomSeed in interface RepeatableLoggableIteratorpublic void init()
Iterable
init in interface Iterableinit in class AbstractOptimizer<T extends OptimizationProblem>public void setApproxModels(java.util.ArrayList<ApproxModel> approxModels)
approxModels - the given list of approximation models.public void setAuxOptimizer(W auxOptimizer)
auxOptimizer - the given auxiliary optimizer.public void setAuxProblem(BoundConstrainedProblem auxProblem)
auxProblem - the given auxiliary optimization problem.public void setCalibrationInterval(int calibrationInterval)
public void setDiviner(V diviner)
diviner - the given diviner.public void setMainOptimizer(TwoStageOptimizer<T,W> mainOptimizer)
mainOptimizer - the given main optimizer.public void setProblem(T mainProblem)
setProblem in class AbstractOptimizer<T extends OptimizationProblem>mainProblem - the given problem.public void setRandomSeed(int randomSeed)
RepeatableLoggableIterator
setRandomSeed in interface RepeatableLoggableIteratorrandomSeed - the given random seed.protected double[] computeNextPoint()
AbstractPointOptimizer
computeNextPoint in class AbstractPointOptimizer<T extends OptimizationProblem>protected int getFunEvalCount()
AbstractOptimizer
getFunEvalCount in class AbstractOptimizer<T extends OptimizationProblem>protected BoundConstrainedProblem makeAuxProblem()
protected void printDiagnostics()
AbstractIterator
printDiagnostics in class AbstractIteratorprotected void setFunEvalCount(int funEvalCount)
AbstractOptimizer
setFunEvalCount in class AbstractOptimizer<T extends OptimizationProblem>funEvalCount - the given number of evaluations.protected void update()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||