ROL
|
#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... | |
Definition at line 27 of file example_01a.hpp.
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)\).
[in] | x | is the optimization vector |
Returns the value of the objective function.
Definition at line 50 of file example_01a.hpp.