|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgenopt.algorithm.util.linesearch.IntervalDivider
genopt.algorithm.util.linesearch.FibonacciDivision
public class FibonacciDivision
Class for doing a line search using the Fibonacci division.
This project was carried out at:
and supported byGenOpt Copyright (c) 1998-2011, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
| Field Summary | |
|---|---|
private int[] |
fibo
The Fibonacci numbers |
| Fields inherited from class genopt.algorithm.util.linesearch.IntervalDivider |
|---|
dimF, dimX, dx, LS, nIntRed, nIntRedMax, NINTREDMAXDEF, opt, x0, x1, x2, x3, xLow, xMin, xUpp |
| Constructor Summary | |
|---|---|
FibonacciDivision(Optimizer opt)
Constructor |
|
| Method Summary | |
|---|---|
static int[] |
getFibonacci(int N)
Gets the Fibonacci numbers |
protected double |
getReductionFactor()
Gets the reduction factor q = I(n+1)/I(n) |
void |
setAbsDFMin(double dFMinimal,
int nMax)
Set the minimal absolut difference between the lowest 3 function values as the stopping criteria |
void |
setMaxIntRed(int n)
Sets the maximum number of interval reductions |
void |
setUncertaintyInterval(double dx)
Sets the fraction of the desired uncertainty interval (0..1) |
| Methods inherited from class genopt.algorithm.util.linesearch.IntervalDivider |
|---|
getXLower, getXMin, getXUpper, iterate, run |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int[] fibo
| Constructor Detail |
|---|
public FibonacciDivision(Optimizer opt)
opt - a reference to the Optimizer object| Method Detail |
|---|
protected double getReductionFactor()
getReductionFactor in class IntervalDividerpublic static int[] getFibonacci(int N)
N - the number of elements in the Fibonacci serie
public void setUncertaintyInterval(double dx)
setUncertaintyInterval in class IntervalDividerdx - the normalized fraction of the uncertainty interval
public void setAbsDFMin(double dFMinimal,
int nMax)
throws OptimizerException
setAbsDFMin in class IntervalDividerdFMinimal - the minimal difference between the lowest
3 function values that has to be obtained before the search stopsnMax - the maximum number of iteration before the
search stops (in case that dFMinimal
cannot be obtained within a reasonable number of trials)
OptimizerException - if method is used for Fibonacci algorithmpublic void setMaxIntRed(int n)
setMaxIntRed in class IntervalDividern - the maximum number of interval reductions
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||