ROL
Public Member Functions | List of all members
FunctionZakharov< ScalarT > Class Template Reference

#include <example_01b.hpp>

Public Member Functions

ScalarT eval (const std::vector< ScalarT > &x)
 A Sacado-accessible version of the Zakharov function to differentiate

\[f(\mathbf{x}) = \mathbf{x}^\top\mathbf{x} + \frac{1}{4}(\mathbf{k}^\top \mathbf{x})^2 + \frac{1}{16}(\mathbf{k}^\top \mathbf{x})^4 \]

Where \(\mathbf{k}=(1,\cdots,n)\). More...

 

Detailed Description

template<class ScalarT>
class FunctionZakharov< ScalarT >

Definition at line 60 of file example_01b.hpp.

Member Function Documentation

template<class ScalarT>
ScalarT FunctionZakharov< ScalarT >::eval ( const std::vector< ScalarT > &  x)

A Sacado-accessible version of the Zakharov function to differentiate

\[f(\mathbf{x}) = \mathbf{x}^\top\mathbf{x} + \frac{1}{4}(\mathbf{k}^\top \mathbf{x})^2 + \frac{1}{16}(\mathbf{k}^\top \mathbf{x})^4 \]

Where \(\mathbf{k}=(1,\cdots,n)\).

Parameters
[in]xis the optimization vector

Returns the value of the objective function.

Definition at line 81 of file example_01b.hpp.


The documentation for this class was generated from the following file: