Class container for the vector-valued function (both input and output are vectors).
More...
#include <Function.hh>
Inherits Optimist::FunctionBase< Input, Output, DerivedFunction >.
Inherited by Optimist::TestSet::DenseCostFunction< Vector, N, Ackley< Vector, N > >, Optimist::TestSet::DenseCostFunction< Vector, 2, Beale< Vector > >, Optimist::TestSet::DenseCostFunction< Vector, 2, EllipticParaboloid< Vector > >, Optimist::TestSet::DenseCostFunction< Vector, 2, Himmelblau< Vector > >, Optimist::TestSet::DenseCostFunction< Vector, N, Rastrigin< Vector, N > >, Optimist::TestSet::DenseCostFunction< Vector, N, RosenbrockCost< Vector, N > >, Optimist::TestSet::DenseCostFunction< Vector, 2, Schaffer2< Vector > >, Optimist::TestSet::DenseCostFunction< Vector, N, Trid< Vector, N > >, Optimist::TestSet::DenseSystemFunction< Vector, 2, Booth< Vector > >, Optimist::TestSet::DenseSystemFunction< Input, 2, Brown< Input, Output >, Output, 3 >, Optimist::TestSet::DenseSystemFunction< Vector, 1, Linear1< Vector > >, Optimist::TestSet::DenseSystemFunction< Vector, 4, PowellSingular< Vector > >, and Optimist::TestSet::DenseSystemFunction< Vector, N, Rosenbrock< Vector, N > >.
template<typename Input, typename Output, typename DerivedFunction>
class Optimist::Function< Input, Output, DerivedFunction >
This specialization of the Function class is for functions \( f:
\mathbb{R}^n \to \mathbb{R}^m \), where the input and output are both vectors. In this case, the first derivative is the Jacobian matrix and the second derivative is a vector of Hessian matrices (tensor of order 3).
- Template Parameters
-
| Input | Function input type. |
| Output | Function output type. |
| DerivedFunction | Derived function class. |
◆ Function()
template<typename Input, typename Output, typename DerivedFunction>
Class constructor for the vector-valued function.
◆ evaluate()
template<typename Input, typename Output, typename DerivedFunction>
| bool Optimist::Function< Input, Output, DerivedFunction >::evaluate |
( |
const Input & | x, |
|
|
Output & | out ) const |
|
inline |
Compute the function value at the input point.
- Parameters
-
| [in] | x | Input point. |
| [out] | out | The function value. |
- Returns
- The boolean flag for successful evaluation.
◆ hessian()
template<typename Input, typename Output, typename DerivedFunction>
Compute the function second derivative at the input point.
- Parameters
-
| [in] | x | Input point. |
| [out] | out | The function second derivative. |
- Returns
- The boolean flag for successful evaluation.
◆ jacobian()
template<typename Input, typename Output, typename DerivedFunction>
Compute the function first derivative at the input point.
- Parameters
-
| [in] | x | Input point. |
| [out] | out | The function first derivative. |
- Returns
- The boolean flag for successful evaluation.
◆ name()
template<typename Input, typename Output, typename DerivedFunction>
Get the function name.
- Returns
- The function name.
◆ FunctionBase< Input, Output, DerivedFunction >
template<typename Input, typename Output, typename DerivedFunction>
The documentation for this class was generated from the following file: