proj home

Files   Classes   Functions   Hierarchy  

probrosenbrock.h

Go to the documentation of this file.
00001 #ifndef PROBROSENBROCK_H
00002 #define PROBROSENBROCK_H
00003 
00008 class probrosenbrock01
00009 {
00010 public:
00011 
00013   uint counter;
00014 
00015   double *xi;
00016 
00017   probrosenbrock01()
00018     : counter(0), xi(new double[2]) {}
00019 
00021   void operator () 
00022   (
00023     double & fval 
00024   ) 
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   }
00030 
00031 };
00032 
00033 
00034 #endif
00035 
00036 

Generated on Fri Mar 4 00:49:30 2011 for Chelton Evans Source by  doxygen 1.5.8