|
| | Schaffer2 () |
| constexpr std::string | name_impl () const |
| bool | evaluate_impl (const Vector &x, Scalar &out) const |
| bool | first_derivative_impl (const Vector &x, FirstDerivative &out) const |
| bool | second_derivative_impl (const Vector &x, SecondDerivative &out) const |
| | Function () |
| constexpr std::string | name () const |
| bool | evaluate (const Vector &x, Vector::Scalar &out) const |
| bool | jacobian (const Vector &x, FirstDerivative &out) const |
| bool | hessian (const Vector &x, SecondDerivative &out) const |
| | FunctionBase () |
| constexpr std::string | name () const |
| bool | evaluate (const Vector &x, Vector::Scalar &out) const |
| bool | first_derivative (const Vector &x, FirstDerivative &out) const |
| bool | second_derivative (const Vector &x, SecondDerivative &out) const |
| constexpr Integer | input_dimension () const |
| constexpr Integer | output_dimension () const |
| const std::vector< Vector > & | solutions () const |
| const std::vector< Vector > & | guesses () const |
| const Vector & | solution (const Integer i) const |
| const Vector & | guess (const Integer i) const |
| bool | is_solution (const Vector &x, const Scalar tol=FunctionBase::SQRT_EPSILON) const |
template<typename Vector>
requires
TypeTrait<Vector>::IsEigen && (!
TypeTrait<Vector>::IsFixed ||
TypeTrait<Vector>::Dimension == 2)
class Optimist::TestSet::Schaffer2< Vector >
Class container for the Schaffer2 function, which is defined as:
\[f(\mathbf{x}) = 0.5 + \displaystyle\frac{\sin^{2}(x_1^2 - x_2^2) -
0.5}{(1 + 0.001(x_1^2 + x_2^2))^2} \text{.}
\]
The function has global minima at \(\mathbf{x} = (0, 0)\), with \(f(\mathbf{x}) = 0\). The initial guesses are generated on the square \(x_i \in \left[-10, 10\right]\).
- Template Parameters
-