|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.optimization.unconstrained.UnconstrainedMaximizer
public class UnconstrainedMaximizer
A maximization problem is simply minimizing the negative of the objective function.
This class is simply provided as a wrapper class to solve a maximization problem using a Minimizer.
| Constructor Summary | |
|---|---|
UnconstrainedMaximizer()
Construct an instance of UnconstrainedMaximizer to maximize an objective function. |
|
UnconstrainedMaximizer(UnconstrainedMinimizer minimizer)
Construct an instance of UnconstrainedMaximizer to maximize an objective function. |
|
| Method Summary | |
|---|---|
double[] |
search(int maxIterations,
double... initials)
Search for a maximizer that maximizes the objective function from the given starting points. |
Vector |
search(int maxIterations,
Vector... initials)
Search for a maximizer that maximizes the objective function from the given starting points. |
void |
solve(RealScalarFunction f,
double tol)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnconstrainedMaximizer(UnconstrainedMinimizer minimizer)
minimizer - the minimizer used to do maximizationpublic UnconstrainedMaximizer()
| Method Detail |
|---|
public void solve(RealScalarFunction f,
double tol)
public Vector search(int maxIterations,
Vector... initials)
maxIterations - the maximum number of iterationsinitials - the initial guesses; they could include information such as boundaries
public double[] search(int maxIterations,
double... initials)
maxIterations - the maximum number of iterationsinitials - an initial guess
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||