public class GridSearchCetaMaximizer extends Object implements CetaMaximizer
CetaMaximizer.NegCetaFunction, CetaMaximizer.Solution
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_GRID_SIZE |
Constructor and Description |
---|
GridSearchCetaMaximizer()
Constructs a maximizer using
the default grid size for even grid
search.
|
GridSearchCetaMaximizer(double gridSize)
Constructs a maximizer with a given grid size for even grid search.
|
GridSearchCetaMaximizer(GridSearchMinimizer.GridDefinition gridDefinition)
Constructs a maximizer with a user-defined grid.
|
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_GRID_SIZE
public GridSearchCetaMaximizer()
public GridSearchCetaMaximizer(double gridSize)
gridSize
- the grid sizepublic GridSearchCetaMaximizer(GridSearchMinimizer.GridDefinition gridDefinition)
gridDefinition
- the user-defined function for gridpublic 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.