ROL
Public Member Functions | List of all members
Zakharov< Real > Class Template Reference

#include <example_01a.hpp>

Public Member Functions

template<class ScalarT >
ScalarT value (const Vector< ScalarT > &x, Real &tol)
 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 Real>
class Zakharov< Real >

Definition at line 61 of file example_01a.hpp.

Member Function Documentation

template<class Real >
template<class ScalarT >
ScalarT Zakharov< Real >::value ( const Vector< ScalarT > &  x,
Real &  tol 
)

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 84 of file example_01a.hpp.


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