Class CombinedCetaMaximizer
- java.lang.Object
-
- tech.nmfin.portfoliooptimization.lai2010.ceta.maximizer.CombinedCetaMaximizer
-
- All Implemented Interfaces:
Optimizer<Ceta,CetaMaximizer.Solution>
,CetaMaximizer
public class CombinedCetaMaximizer extends Object implements CetaMaximizer
Searches the maximum C(η) by an array of given maximizers, being tried in sequence. The first successful search by a maximizer will be returned as the solution. In general, unstable but fast maximizers should be tried first to speed up the maximization process, whereas a stable but slow maximizer is used as a last resort.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tech.nmfin.portfoliooptimization.lai2010.ceta.maximizer.CetaMaximizer
CetaMaximizer.NegCetaFunction, CetaMaximizer.Solution
-
-
Constructor Summary
Constructors Constructor Description CombinedCetaMaximizer()
Constructs a combined maximizer.CombinedCetaMaximizer(CetaMaximizer[] maximizers)
Constructs a combined maximizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
.
-
-
-
Constructor Detail
-
CombinedCetaMaximizer
public CombinedCetaMaximizer(CetaMaximizer[] maximizers)
Constructs a combined maximizer.- Parameters:
maximizers
- the maximizers to be used
-
CombinedCetaMaximizer
public CombinedCetaMaximizer()
Constructs a combined maximizer.
-
-
Method Detail
-
search
public CetaMaximizer.Solution search(Ceta ceta, double rangeStart, double rangeEnd)
Description copied from interface:CetaMaximizer
Searches the maximal point of a given C(η) function within a given range.- Specified by:
search
in interfaceCetaMaximizer
- Parameters:
ceta
- the C(η) functionrangeStart
- the start of the rangerangeEnd
- the end of the range- Returns:
- the maximal point
-
solve
public CetaMaximizer.Solution solve(Ceta ceta) throws Exception
Description copied from interface:Optimizer
Solve an optimization problem, e.g.,OptimProblem
.- Specified by:
solve
in interfaceOptimizer<Ceta,CetaMaximizer.Solution>
- Parameters:
ceta
- an optimization problem- Returns:
- a solution to the optimization problem
- Throws:
Exception
- when there is an error solving the problem
-
-