|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jebl.math.MultivariateMinimum jebl.math.OrthogonalSearch
public class OrthogonalSearch
minimization of a real-valued function of several variables without using derivatives, using the simple strategy of optimizing variables one by one.
Nested Class Summary | |
---|---|
protected static interface |
OrthogonalSearch.RoundOptimiser
|
Nested classes/interfaces inherited from class jebl.math.MultivariateMinimum |
---|
MultivariateMinimum.Factory |
Field Summary |
---|
Fields inherited from class jebl.math.MultivariateMinimum |
---|
maxFun, numFun, numFuncStops |
Constructor Summary | |
---|---|
OrthogonalSearch()
Initialization |
|
OrthogonalSearch(boolean shuffle)
Initialization |
|
OrthogonalSearch(OrderEnumerator.OEFactory orderingFactory)
Initialization |
Method Summary | |
---|---|
protected void |
debug(Object output)
|
static MultivariateMinimum.Factory |
generateFactory(boolean shuffle)
Generate a MultivariateMinimum.Factory for an OrthogonalSearch |
protected OrthogonalSearch.RoundOptimiser |
generateOrthogonalRoundOptimiser(MultivariateFunction mf)
|
protected UnivariateMinimum |
generateUnivariateMinimum()
|
protected boolean |
isDebug()
|
protected boolean |
isFrequentMonitoring()
|
protected boolean |
isIgnoreNonMinimalUnivariateMinimisations()
Should we ignore new minisations that are not as minimal as the current one? |
protected boolean |
isUseCurrentInUnivariateMinimisation()
|
void |
optimize(MultivariateFunction f,
double[] xvec,
double tolfx,
double tolx)
The actual optimization routine (needs to be implemented in a subclass of MultivariateMinimum). |
void |
optimize(MultivariateFunction f,
double[] xvec,
double tolfx,
double tolx,
MinimiserMonitor monitor)
The actual optimization routine It finds a minimum close to vector x when the absolute tolerance for each parameter is specified. |
void |
setIgnoreNonMinimalUnivariateMinimisations(boolean value)
Should we ignore new minisations that are not as minimal as the current one? |
void |
setUseCurrentInUnivariateMinimisation(boolean value)
|
Methods inherited from class jebl.math.MultivariateMinimum |
---|
copy, findMinimum, findMinimum, findMinimum, stopCondition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrthogonalSearch()
public OrthogonalSearch(boolean shuffle)
shuffle
- If true uses shuffling, else uses ascending order, when choosing next parameter to optimse
(true means equivalent to old StochasticOSearch)public OrthogonalSearch(OrderEnumerator.OEFactory orderingFactory)
Method Detail |
---|
public void setUseCurrentInUnivariateMinimisation(boolean value)
public void setIgnoreNonMinimalUnivariateMinimisations(boolean value)
public void optimize(MultivariateFunction f, double[] xvec, double tolfx, double tolx)
MultivariateMinimum
optimize
in class MultivariateMinimum
f
- multivariate functionxvec
- initial guesses for the minimum
(contains the location of the minimum on return)tolfx
- absolute tolerance of function valuetolx
- absolute tolerance of each parameterpublic void optimize(MultivariateFunction f, double[] xvec, double tolfx, double tolx, MinimiserMonitor monitor)
MultivariateMinimum
optimize
in class MultivariateMinimum
f
- multivariate functionxvec
- initial guesses for the minimum
(contains the location of the minimum on return)tolfx
- absolute tolerance of function valuetolx
- absolute tolerance of each parametermonitor
- A monitor object that receives information about the minimising process (for display purposes)
note: The default implementation just calls the optimize function with out the Monitor!public static final MultivariateMinimum.Factory generateFactory(boolean shuffle)
shuffle
- if true shuffles order for each round (see OrthogonalSearch constructors)protected UnivariateMinimum generateUnivariateMinimum()
protected boolean isFrequentMonitoring()
protected OrthogonalSearch.RoundOptimiser generateOrthogonalRoundOptimiser(MultivariateFunction mf)
protected final boolean isUseCurrentInUnivariateMinimisation()
protected final boolean isIgnoreNonMinimalUnivariateMinimisations()
protected void debug(Object output)
protected boolean isDebug()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |