GPLIB++
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
GAClasses
TestObjective.h
Go to the documentation of this file.
1
#ifndef CTESTOBJECTIVE_H
2
#define CTESTOBJECTIVE_H
3
4
#include "
GeneralObjective.h
"
5
6
namespace
gplib
7
{
8
/** \addtogroup gainv Genetic algorithm optimization */
9
/* @{ */
10
class
TestObjective
:
public
GeneralObjective
11
{
12
public
:
13
virtual
TestObjective
*
clone
()
const
14
{
15
return
new
TestObjective
(*
this
);
16
}
17
virtual
double
PostParallel
(
const
ttranscribed
&member);
18
TestObjective
();
19
20
virtual
~TestObjective
();
21
};
22
/* @} */
23
}
24
#endif // CTESTOBJECTIVE_H
gplib::ttranscribed
ublas::vector< double > ttranscribed
Definition:
gentypes.h:21
gplib::TestObjective::clone
virtual TestObjective * clone() const
We need clone and create for building an array of derived objects, see FAQ lite 20.8, the return type depends on the derived class.
Definition:
TestObjective.h:13
gplib::TestObjective
Definition:
TestObjective.h:10
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::GeneralObjective
The basic object for any objective function, mainly an interface class and some storage.
Definition:
GeneralObjective.h:17
gplib::TestObjective::TestObjective
TestObjective()
Definition:
TestObjective.cpp:6
GeneralObjective.h
gplib::TestObjective::~TestObjective
virtual ~TestObjective()
Definition:
TestObjective.cpp:9
Generated on Wed May 25 2016 14:21:07 for GPLIB++ by
1.8.6