Purple::RastriginFunction Class Reference

Inheritance diagram for Purple::RastriginFunction:

Purple::ObjectiveFunction List of all members.

Public Member Functions

 RastriginFunction (void)
virtual ~RastriginFunction (void)
double getEvaluation (Vector< double >)
Vector< double > getGradient (Vector< double >)
Matrix< double > getHessian (Vector< double >)
Matrix< double > getInverseHessian (Vector< double >)

Detailed Description

This class represents the Rastrigin's objective function.

See also:
ObjectiveFunction.

Definition at line 26 of file RastriginFunction.h.


Constructor & Destructor Documentation

Purple::RastriginFunction::RastriginFunction ( void   ) 

General constructor. It creates a Rastrigin's objective function object. It also initializes all the rest of class members to their default values:

Definition at line 34 of file RastriginFunction.cpp.

Purple::RastriginFunction::~RastriginFunction ( void   )  [virtual]

Destructor.

Definition at line 52 of file RastriginFunction.cpp.


Member Function Documentation

double Purple::RastriginFunction::getEvaluation ( Vector< double >  argument  )  [virtual]

This method returns the Rastrigin's function evaluation for a given argument.

Parameters:
argument,: Objective function argument.

Implements Purple::ObjectiveFunction.

Definition at line 66 of file RastriginFunction.cpp.

Vector< double > Purple::RastriginFunction::getGradient ( Vector< double >  argument  )  [virtual]

This method returns the De Jong's analytical gradient Vector for a given argument.

Parameters:
argument,: Point at which the gradient is to be computed.

Reimplemented from Purple::ObjectiveFunction.

Definition at line 103 of file RastriginFunction.cpp.

Matrix< double > Purple::RastriginFunction::getHessian ( Vector< double >  argument  )  [virtual]

This method returns the Rosenbrock's analytical Hessian Matrix for a given argument.

Parameters:
argument,: Point at which the Hessian is to be computed.

Reimplemented from Purple::ObjectiveFunction.

Definition at line 125 of file RastriginFunction.cpp.

Matrix< double > Purple::RastriginFunction::getInverseHessian ( Vector< double >  argument  )  [virtual]

This method returns the Rastrigin's analytical inverse Hessian Matrix for a given argument.

Parameters:
argument,: Point at which the inverse Hessian is to be computed.

Reimplemented from Purple::ObjectiveFunction.

Definition at line 157 of file RastriginFunction.cpp.


Generated on Wed Jun 21 13:10:38 2006 for Purple by  doxygen 1.4.7