GPLIB++
TestObjective2.h
Go to the documentation of this file.
1 #ifndef CTESTOBJECTIVE2_H
2 #define CTESTOBJECTIVE2_H
3 
4 #include "GeneralObjective.h"
5 namespace gplib
6  {
7  /** \addtogroup gainv Genetic algorithm optimization */
8  /* @{ */
10  {
11  private:
12  bool compatible;
13  public:
14  virtual TestObjective2 *clone() const
15  {
16  return new TestObjective2(*this);
17  }
18  virtual double PostParallel(const ttranscribed &member);
19  TestObjective2(bool compat = true);
20  virtual ~TestObjective2();
21  };
22  /* @} */
23  }
24 #endif // CTESTOBJECTIVE_H
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)
The basic object for any objective function, mainly an interface class and some storage.
virtual TestObjective2 * 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.