HalleyChebyAD
 All Classes Files Functions Variables Friends
ObjectiveFunction Class Reference

Responsibilites: Interfaces with ADOL-C. and Taping the function. More...

#include <ObjectiveFunction.h>

Public Member Functions

 ObjectiveFunction (const int dimension_in)
 
 ObjectiveFunction (const int dimension_in, double *x_initial_in, double(*eval_in)(const double *, const int), adouble(*eval_a_in)(const adouble *, const int), const string name_in)
 
 ObjectiveFunction (const ObjectiveFunction &rhs)
 
void swap (ObjectiveFunction &, ObjectiveFunction &)
 
ObjectiveFunctionoperator= (ObjectiveFunction rhs)
 
void set_x_initial (void(*initial_pointpty)(double *, const int dimension))
 
double tape_it (const double *x, const short int tape_number)
 
void print () const
 

Public Attributes

double(* eval )(const double *x, const int dim)
 
adouble(* eval_a )(const adouble *x, const int dim)
 
double * x_initial
 

Detailed Description

Responsibilites: Interfaces with ADOL-C. and Taping the function.

Constructor & Destructor Documentation

ObjectiveFunction::ObjectiveFunction ( const ObjectiveFunction rhs)

Copy constructor

Member Function Documentation

ObjectiveFunction & ObjectiveFunction::operator= ( ObjectiveFunction  rhs)

Copy Assignment using swap-copy

void ObjectiveFunction::swap ( ObjectiveFunction first,
ObjectiveFunction second 
)

Swaps all fields of the ObjectiveFunctions

double ObjectiveFunction::tape_it ( const double *  x,
const short int  tape_number 
)

tapes the trace of the function eval_a with input double * x.


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