public class BrentCetaMaximizer extends Object implements CetaMaximizer
CetaMaximizer.NegCetaFunction, CetaMaximizer.Solution
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_EPSILON |
Constructor and Description |
---|
BrentCetaMaximizer()
Constructs a maximizer using
the default epsilon (for the Brent's search
algorithm).
|
BrentCetaMaximizer(double epsilon)
Constructs a maximizer with a given ε (for the Brent's search
algorithm).
|
Modifier and Type | Method and Description |
---|---|
CetaMaximizer.Solution |
search(Ceta ceta,
double rangeStart,
double rangeEnd)
Searches the maximal point of a given C(η) function within a
given range.
|
CetaMaximizer.Solution |
solve(Ceta ceta)
Solve an optimization problem, e.g.,
OptimProblem . |
public static final double DEFAULT_EPSILON
public BrentCetaMaximizer(double epsilon)
epsilon
- εpublic BrentCetaMaximizer()
public CetaMaximizer.Solution search(Ceta ceta, double rangeStart, double rangeEnd)
CetaMaximizer
search
in interface CetaMaximizer
ceta
- the C(η) functionrangeStart
- the start of the rangerangeEnd
- the end of the rangepublic CetaMaximizer.Solution solve(Ceta ceta) throws Exception
Optimizer
OptimProblem
.solve
in interface Optimizer<Ceta,CetaMaximizer.Solution>
ceta
- an optimization problemException
- when there is an error solving the problemCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.