GPLIB++
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  /* @{ */
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
ublas::vector< double > ttranscribed
Definition: gentypes.h:21
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
virtual double PostParallel(const ttranscribed &member)
Some operations cannot be done in parallel, these are done after, returns the misfit value...
The basic object for any objective function, mainly an interface class and some storage.