|
||||||||||
| 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.TwoStageRiskPerfAlgoBuilder<T,V,W>
public class TwoStageRiskPerfAlgoBuilder<T extends BasicBoundConstrainedProblem,V extends MultiObjectiveDiviner,W extends NSGA2>
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 | |
|---|---|
TwoStageRiskPerfAlgoBuilder()
|
|
| Method Summary | |
|---|---|
protected double[] |
computeNextPoint()
NOTE: Does nothing! |
java.util.ArrayList<ApproxModel> |
getApproxModels()
Returns the list of approximation models. |
W |
getAuxOptimizer()
Returns the auxiliary optimizer. |
MultiObjectiveProblem |
getAuxProblem()
Returns the auxiliary problem. |
int |
getCalibrationInterval()
|
V |
getDiviner()
Returns the diviner. |
protected int |
getFunEvalCount()
Returns the number of function evaluations. |
TwoStageRiskPerfOptimizer<T,W> |
getMainOptimizer()
Returns the main optimizer. |
int |
getMaxFunEval()
Returns the maximum number of allowed function evaluations. |
T |
getProblem()
Returns the main problem. |
int |
getRandomSeed()
Returns the random seed. |
void |
init()
Initialization routine |
boolean |
isTerminated()
Returns true if termination criteria are satisfied. |
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(MultiObjectiveProblem 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(TwoStageRiskPerfOptimizer<T,W> mainOptimizer)
Sets the main optimizer. |
void |
setMaxFunEval(int maxFunEval)
Sets the maximum number of allowed function evaluations. |
void |
setProblem(T mainProblem)
Sets the problem. |
void |
setRandomSeed(int randomSeed)
Sets the random seed. |
void |
singleIteration()
Performs a single iteration. |
protected void |
update()
Any updates that need to be performed at each iteration are encapsulated in this routine. |
| Methods inherited from class iterator.AbstractOptimizer |
|---|
clear, dataAdded, dataAdded, dataRemoved, dataRemoved, getDataHandler, getLogFileName, iterate, setDataHandler, setLogFileName, 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 |
|---|
iterate |
| Constructor Detail |
|---|
public TwoStageRiskPerfAlgoBuilder()
| Method Detail |
|---|
public java.util.ArrayList<ApproxModel> getApproxModels()
public W getAuxOptimizer()
public MultiObjectiveProblem getAuxProblem()
public int getCalibrationInterval()
public V getDiviner()
public TwoStageRiskPerfOptimizer<T,W> getMainOptimizer()
public int getMaxFunEval()
AbstractOptimizer
getMaxFunEval in class AbstractOptimizer<T extends BasicBoundConstrainedProblem>public T getProblem()
getProblem in class AbstractOptimizer<T extends BasicBoundConstrainedProblem>public int getRandomSeed()
RepeatableLoggableIterator
getRandomSeed in interface RepeatableLoggableIteratorpublic void init()
Iterable
init in interface Iterableinit in class AbstractOptimizer<T extends BasicBoundConstrainedProblem>public boolean isTerminated()
Iterabletrue if termination criteria are satisfied.
isTerminated in interface IterableisTerminated in class AbstractOptimizer<T extends BasicBoundConstrainedProblem>true when done.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(MultiObjectiveProblem auxProblem)
auxProblem - the given auxiliary optimization problem.public void setCalibrationInterval(int calibrationInterval)
public void setDiviner(V diviner)
diviner - the given diviner.public void setMainOptimizer(TwoStageRiskPerfOptimizer<T,W> mainOptimizer)
mainOptimizer - the given main optimizer.public void setMaxFunEval(int maxFunEval)
AbstractOptimizer
setMaxFunEval in class AbstractOptimizer<T extends BasicBoundConstrainedProblem>maxFunEval - the given maxFunEval.public void setProblem(T mainProblem)
setProblem in class AbstractOptimizer<T extends BasicBoundConstrainedProblem>mainProblem - the given problem.public void setRandomSeed(int randomSeed)
RepeatableLoggableIterator
setRandomSeed in interface RepeatableLoggableIteratorrandomSeed - the given random seed.public void singleIteration()
Iterable
singleIteration in interface IterablesingleIteration in class AbstractPointOptimizer<T extends BasicBoundConstrainedProblem>protected double[] computeNextPoint()
computeNextPoint in class AbstractPointOptimizer<T extends BasicBoundConstrainedProblem>AbstractPointOptimizer.computeNextPoint()protected int getFunEvalCount()
AbstractOptimizer
getFunEvalCount in class AbstractOptimizer<T extends BasicBoundConstrainedProblem>protected void printDiagnostics()
AbstractIterator
printDiagnostics in class AbstractIteratorprotected void setFunEvalCount(int funEvalCount)
AbstractOptimizer
setFunEvalCount in class AbstractOptimizer<T extends BasicBoundConstrainedProblem>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 | |||||||||