ROL
|
Test ChainRuleObjective class. More...
#include "ROL_RandomVector.hpp"
#include "ROL_StdVector.hpp"
#include "ROL_ChainRuleObjective.hpp"
#include "ROL_Stream.hpp"
#include "Teuchos_GlobalMPISession.hpp"
#include "ROL_SimpleEqConstrained.hpp"
#include "ROL_Zakharov.hpp"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Test ChainRuleObjective class.
Compose the objective \(f(y)\) where \(y = g(x)\) with
\begin{align*} y_1 &= g_1(x) &= x_1^2 + x_2^2 + x_3^2 + x_4^2 + x_5^2 - 10 \\ y_2 &= g_2(x) &= x_2*x_3 - 5*x_4*x_5 \\ y_3 &= g_3(x) &= x_1^3 + x_2^3 + 1 \end{align*}
and
\[ f(\mathbf{y}) = \mathbf{y}^\top\mathbf{y} + \frac{1}{4}(\mathbf{k}^\top \mathbf{y})^2 + \frac{1}{16}(\mathbf{k}^\top \mathbf{y})^4 \]
Where \(\mathbf{k}=(1,\cdots,n)\)
Definition in file function/test_18.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 42 of file function/test_18.cpp.
References ROL::RandomizeVector().