proj home

Files   Classes   Functions   Hierarchy  

probrosenbrock01 Class Reference

Test problem. Global minimum at (1,1) of 0. More...

#include <probrosenbrock.h>

Collaboration diagram for probrosenbrock01:

List of all members.

Public Member Functions

 probrosenbrock01 ()
void operator() (double &fval)
 Evaluate the function to be minimized.

Public Attributes

uint counter
 Testing: count the number of function evaluations.
double * xi


Detailed Description

Test problem. Global minimum at (1,1) of 0.

Definition at line 8 of file probrosenbrock.h.


Constructor & Destructor Documentation

probrosenbrock01::probrosenbrock01 (  )  [inline]

Definition at line 17 of file probrosenbrock.h.

00018     : counter(0), xi(new double[2]) {}


Member Function Documentation

void probrosenbrock01::operator() ( double &  fval  )  [inline]

Evaluate the function to be minimized.

Definition at line 22 of file probrosenbrock.h.

References xi.

00025   {
00026     double a = 1.0-xi[0];
00027     double b = xi[1]-xi[0]*xi[0];
00028     fval = a*a + b*b*105.0;
00029   }


Member Data Documentation

Testing: count the number of function evaluations.

Definition at line 13 of file probrosenbrock.h.

Referenced by exploretest08().

Definition at line 15 of file probrosenbrock.h.

Referenced by operator()().


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

Generated on Fri Mar 4 00:50:11 2011 for Chelton Evans Source by  doxygen 1.5.8