public class FibonacciDivision extends IntervalDivider
This project was carried out at:
and supported byGenOpt Copyright (c) 1998-2021, 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.
Modifier and Type | Field and Description |
---|---|
private int[] |
fibo
The Fibonacci numbers
|
Constructor and Description |
---|
FibonacciDivision(Optimizer opt)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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)
|
public FibonacciDivision(Optimizer opt)
opt
- a reference to the Optimizer objectprotected double getReductionFactor()
getReductionFactor
in class IntervalDivider
public static int[] getFibonacci(int N)
N
- the number of elements in the Fibonacci seriepublic void setUncertaintyInterval(double dx)
setUncertaintyInterval
in class IntervalDivider
dx
- the normalized fraction of the uncertainty intervalpublic void setAbsDFMin(double dFMinimal, int nMax) throws OptimizerException
setAbsDFMin
in class IntervalDivider
dFMinimal
- 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 IntervalDivider
n
- the maximum number of interval reductions