jsat.math.optimization
Class RosenbrockFunction
- java.lang.Object
-
- jsat.math.optimization.RosenbrockFunction
-
- All Implemented Interfaces:
- java.io.Serializable, Function
public class RosenbrockFunction extends java.lang.Object implements Function
The Rosenbrock function is a function with at least one minima with the value zero. It is often used as a benchmark for optimization problems.
The minima is the vector of all ones. Once N %gt; 3, more then one minima can occur.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static FunctionVecGRADIENTThe gradient of the Rosenbrock function
-
Constructor Summary
Constructors Constructor and Description RosenbrockFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublef(Vec x, boolean parallel)Evaluates the given function for the specified input vector.FunctionVecgetDerivative()Returns the gradient of the Rosenbrock function-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jsat.math.Function
f, f, forwardDifference
-
-
-
-
Field Detail
-
GRADIENT
public static final FunctionVec GRADIENT
The gradient of the Rosenbrock function
-
-
Method Detail
-
f
public double f(Vec x, boolean parallel)
Description copied from interface:FunctionEvaluates the given function for the specified input vector.
-
getDerivative
public FunctionVec getDerivative()
Returns the gradient of the Rosenbrock function- Returns:
- the gradient of the Rosenbrock function
-
-
DataMelt 3.0 © DataMelt by jWork.ORG