GPLIB++
TestObjective2.cpp
Go to the documentation of this file.
1 #include "TestObjective2.h"
2 #include <cmath>
3 
4 namespace gplib
5  {
7  compatible(compat)
8  {
9  }
10 
12  {
13  }
14 
16  {
17  double returnvalue = 0.0;
18  if (compat)
19  {
20  returnvalue = 10. * std::pow(member(1) - std::pow(member(0), 2), 2) + std::pow(1.
21  - member(0), 2);
22  }
23  else
24  {
25  returnvalue = 10. * std::pow(member(0) + std::pow(member(1), 2), 2) + std::pow(1.
26  + member(1), 2);
27  }
28  return returnvalue;
29  }
30  }
ublas::vector< double > ttranscribed
Definition: gentypes.h:21
virtual double PostParallel(const ttranscribed &member)
Some operations cannot be done in parallel, these are done after, returns the misfit value...
TestObjective2(bool compat=true)