ROL
Typedefs | Functions
example_01a.cpp File Reference

An example combining ROL and Sacado to mimize the Zakharov function. The gradient and the action of the Hessian on a given vector are computed by Sacado using automatic differentiation.
More...

#include <iostream>
#include "ROL_Sacado_Objective.hpp"
#include "ROL_Algorithm.hpp"
#include "ROL_LineSearchStep.hpp"
#include "ROL_StatusTest.hpp"
#include "ROL_ParameterList.hpp"
#include "ROL_Stream.hpp"
#include "Teuchos_GlobalMPISession.hpp"
#include "example_01a.hpp"

Go to the source code of this file.

Typedefs

typedef double RealT
 

Functions

int main (int argc, char **argv)
 

Detailed Description

An example combining ROL and Sacado to mimize the Zakharov function. The gradient and the action of the Hessian on a given vector are computed by Sacado using automatic differentiation.

This implementation is far from optimal as vectors of AD type are being created repeatedly. A more efficient implementation would encapsulate the functions Zakharov, objgrad, and hessVec in an object so that the AD vectors can be instantiated once.

Author
Created by G. von Winckel

Definition in file example_01a.cpp.

Typedef Documentation

◆ RealT

typedef double RealT

Definition at line 73 of file example_01a.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )