public class NMSimplex extends VisualScalarOptimizer implements SimulatedAnnealing
| Modifier and Type | Field and Description |
|---|---|
protected int |
BestCount |
protected java.lang.String |
ConvergenceMsg |
protected java.lang.String |
CurrentMove |
protected DblParamSetSimplex |
CurrentSimplex |
protected int |
FunEvals |
protected int |
Iter |
protected int |
N |
protected NMSimplexConfiguration |
Options |
protected ParameterValuePair |
PrevBest |
protected java.lang.String |
PrevMove |
protected ParameterValuePair |
ReflectPt |
protected boolean |
ScalarMinimization |
protected DblMatrix |
Temperature |
protected ParameterValuePair |
TrialPt |
InitialGuess, Model, NumParams| Constructor and Description |
|---|
NMSimplex(OptimizableScalar Model,
DblParamSet InitGuess)
Construct a new Nelder-Mead Simplex using an model and an intial parameter guess.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
constraintsOK() |
void |
ContractInside() |
void |
ContractOutside() |
void |
displaySimplex()
Display the progress of the simplex.
|
DblMatrix |
evaluateTemperature()
Determine the temperature for a simulated annealing schedule.
|
void |
Expand() |
DblParamSet |
getBestEstimate()
Get the estimated parameter value at the estimated parameter value.
|
DblMatrix |
getBestValue()
Get the scalar value at the estimated parameter value.
|
NMSimplexConfiguration |
getConfiguration() |
DblMatrix |
getFitnessValue(DblParamSet param)
Get the fitness value for a particular parameter set.
|
void |
getInitialSimplex()
Return a DblParamSetSimplex to use as the initial simplex of an optimization.
|
NMSimplexConfiguration |
getOptions() |
DblMatrix |
getTemperature()
Get a temperature for a simulated annealing schedule.
|
boolean |
hasNotConverged() |
void |
Initial()
Initialize all fitness values of the CurrentSimplex.
|
void |
Reflect() |
void |
setOptions(NMSimplexConfiguration S) |
void |
setTemperature(DblMatrix temp)
Set a temperature for a simulated annealing schedule.
|
void |
Shrink()
Shrink the simplex about the average.
|
void |
solve()
Minimize until convergence.
|
void |
update()
Implementation of the Nelder-Mead Simplex updating rules.
|
void |
visualDiagnostics()
Typically this shows visually some convergence diagnostics.
|
void |
visuallyConfigure()
Typically this allows setting of optimization settings and preferences related to performance.
|
protected DblParamSetSimplex CurrentSimplex
protected NMSimplexConfiguration Options
protected int N
protected int Iter
protected ParameterValuePair PrevBest
protected int FunEvals
protected java.lang.String PrevMove
protected ParameterValuePair ReflectPt
protected ParameterValuePair TrialPt
protected java.lang.String CurrentMove
protected DblMatrix Temperature
protected boolean ScalarMinimization
protected java.lang.String ConvergenceMsg
protected int BestCount
public NMSimplex(OptimizableScalar Model, DblParamSet InitGuess)
public NMSimplexConfiguration getOptions()
public DblParamSet getBestEstimate()
getBestEstimate in class VisualScalarOptimizerpublic DblMatrix getBestValue()
getBestValue in class VisualScalarOptimizerpublic void visuallyConfigure()
visuallyConfigure in class VisualScalarOptimizerpublic void visualDiagnostics()
visualDiagnostics in class VisualScalarOptimizerpublic void Shrink()
public void ContractInside()
public void ContractOutside()
public void Reflect()
public void Expand()
public void Initial()
public boolean hasNotConverged()
public boolean constraintsOK()
public void getInitialSimplex()
public NMSimplexConfiguration getConfiguration()
public void setOptions(NMSimplexConfiguration S)
public DblMatrix getFitnessValue(DblParamSet param)
public void update()
public void displaySimplex()
public void solve()
solve in class VisualScalarOptimizerpublic DblMatrix getTemperature()
getTemperature in interface SimulatedAnnealingpublic void setTemperature(DblMatrix temp)
setTemperature in interface SimulatedAnnealingpublic DblMatrix evaluateTemperature()
evaluateTemperature in interface SimulatedAnnealingCopyright © 2011, 2013. Daniel P. Dougherty