GPLIB++
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
GAClasses
TestObjective.cpp
Go to the documentation of this file.
1
#include "
TestObjective.h
"
2
#include <cmath>
3
4
namespace
gplib
5
{
6
TestObjective::TestObjective
()
7
{
8
}
9
TestObjective::~TestObjective
()
10
{
11
}
12
13
double
TestObjective::PostParallel
(
const
ttranscribed
&member)
14
{
15
double
returnvalue = 10. * std::pow(member(0) - std::pow(member(1), 2), 2) + std::pow(
16
1. - member(1), 2);
17
return
(returnvalue);
18
}
19
}
gplib::ttranscribed
ublas::vector< double > ttranscribed
Definition:
gentypes.h:21
TestObjective.h
gplib::TestObjective::PostParallel
virtual double PostParallel(const ttranscribed &member)
Some operations cannot be done in parallel, these are done after, returns the misfit value...
Definition:
TestObjective.cpp:13
gplib::TestObjective::TestObjective
TestObjective()
Definition:
TestObjective.cpp:6
gplib::TestObjective::~TestObjective
virtual ~TestObjective()
Definition:
TestObjective.cpp:9
Generated on Wed May 25 2016 14:21:07 for GPLIB++ by
1.8.6