public interface Optimizer2
null
.Modifier and Type | Method and Description |
---|---|
Optimizer2 |
clone() |
int |
getMaximumIterations()
Returns the maximum number of iterations to perform
|
void |
optimize(double tolerance,
Vec w,
Vec x0,
Function f,
FunctionVec fp,
FunctionVec fpp)
Attempts to optimize the given function by finding the value of
w
that will minimize the value returned by f(w) , using
w = x0 as an initial starting point. |
void |
optimize(double tolerance,
Vec w,
Vec x0,
Function f,
FunctionVec fp,
FunctionVec fpp,
ExecutorService ex)
Attempts to optimize the given function by finding the value of
w
that will minimize the value returned by f(w) , using
w = x0 as an initial starting point. |
void |
setMaximumIterations(int iterations)
Sets the maximum number of iterations allowed for the optimization method
|
void optimize(double tolerance, Vec w, Vec x0, Function f, FunctionVec fp, FunctionVec fpp)
w
that will minimize the value returned by f(w)
, using
w = x0 as an initial starting point.tolerance
- the value that the gradient norm must be less than to
consider convergedw
- the the location to store the final solutionx0
- the initial guess for the solution. This value will not be
changed, and intermediate matrices will be created as the same type.f
- the objective function to minimizerfp
- the derivative of the objective function, may be null
depending on the optimizerfpp
- the Hessian of the objective function, may be null
depending on the optimizervoid optimize(double tolerance, Vec w, Vec x0, Function f, FunctionVec fp, FunctionVec fpp, ExecutorService ex)
w
that will minimize the value returned by f(w)
, using
w = x0 as an initial starting point.tolerance
- the value that the gradient norm must be less than to
consider convergedw
- the the location to store the final solutionx0
- the initial guess for the solution. This value will not be
changed, and intermediate matrices will be created as the same type.f
- the objective function to minimizerfp
- the derivative of the objective function, may be null
depending on the optimizerfpp
- the Hessian of the objective function, may be null
depending on the optimizerex
- the source of threads for parallel computation, may be
null
to perform serial computation.void setMaximumIterations(int iterations)
iterations
- the maximum number of iterations to performint getMaximumIterations()
Optimizer2 clone()
Copyright © 2017. All rights reserved.