|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjebl.math.MultivariateMinimum
public abstract class MultivariateMinimum
abstract base class for minimisation of a multivariate function
| Nested Class Summary | |
|---|---|
static interface |
MultivariateMinimum.Factory
A factory interface for MultivariateMinimums (because they aren't statefree) |
| Field Summary | |
|---|---|
int |
maxFun
maxFun is the maximum number of calls to fun allowed. |
int |
numFun
total number of function evaluations necessary |
int |
numFuncStops
numFuncStops is the number of consecutive positive evaluations of the stop criterion based on function evaluation necessary to cause the abortion of the optimization (default is 4) |
| Constructor Summary | |
|---|---|
MultivariateMinimum()
|
|
| Method Summary | |
|---|---|
static void |
copy(double[] target,
double[] source)
Copy source vector into target vector |
double |
findMinimum(MultivariateFunction f,
double[] xvec)
Find minimum close to vector x |
double |
findMinimum(MultivariateFunction f,
double[] xvec,
int fxFracDigits,
int xFracDigits)
Find minimum close to vector x (desired fractional digits for each parameter is specified) |
double |
findMinimum(MultivariateFunction f,
double[] xvec,
int fxFracDigits,
int xFracDigits,
MinimiserMonitor monitor)
Find minimum close to vector x (desired fractional digits for each parameter is specified) |
abstract 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. |
boolean |
stopCondition(double fx,
double[] x,
double tolfx,
double tolx,
boolean firstCall)
Checks whether optimization should stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int numFun
public int maxFun
public int numFuncStops
| Constructor Detail |
|---|
public MultivariateMinimum()
| Method Detail |
|---|
public double findMinimum(MultivariateFunction f,
double[] xvec)
f - multivariate functionxvec - initial guesses for the minimum
(contains the location of the minimum on return)
public double findMinimum(MultivariateFunction f,
double[] xvec,
int fxFracDigits,
int xFracDigits)
f - multivariate functionxvec - initial guesses for the minimum
(contains the location of the minimum on return)fxFracDigits - desired fractional digits in the function valuexFracDigits - desired fractional digits in parameters x
public double findMinimum(MultivariateFunction f,
double[] xvec,
int fxFracDigits,
int xFracDigits,
MinimiserMonitor monitor)
f - multivariate functionxvec - initial guesses for the minimum
(contains the location of the minimum on return)fxFracDigits - desired fractional digits in the function valuexFracDigits - desired fractional digits in parameters x
public abstract void optimize(MultivariateFunction f,
double[] xvec,
double tolfx,
double tolx)
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 parameter
public void optimize(MultivariateFunction f,
double[] xvec,
double tolfx,
double tolx,
MinimiserMonitor monitor)
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 boolean stopCondition(double fx,
double[] x,
double tolfx,
double tolx,
boolean firstCall)
fx - current function valuex - current values of function parameterstolfx - absolute tolerance of function valuetolx - absolute tolerance of each parameterfirstCall - needs to be set to true when this routine is first called
otherwise it should be set to false
public static final void copy(double[] target,
double[] source)
target - parameter arraysource - parameter array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||