GPLIB++
GeneralTranscribe.h
Go to the documentation of this file.
1 
2 #ifndef CGENERALTRANSCRIBE_H
3 #define CGENERALTRANSCRIBE_H
4 #include "gentypes.h"
5 
6 namespace gplib
7  {
8  /** \addtogroup gainv Genetic algorithm optimization */
9  /* @{ */
10 
11  //! General Transcribe base class for genetic algorithm parameter transcription
12  /*! General Transcribe: Base class for transcribing a gene string to numbers that can be handled by the Objective functions.
13  * Does not care about which parameter used by which function, but only returns a vector of doubles.
14  * This base class only defines the interface, but has no own functionality
15  * This version: $Id: GeneralTranscribe.h 1816 2009-09-07 11:28:35Z mmoorkamp $
16  */
18  {
19  public:
20  /*! The abstract function GetValues takes a population member as input and returns a
21  * vector of doubles, that are used as parameters for the objective functions*/
22  virtual ttranscribed GetValues(const tpopmember &member)=0;
23  virtual int GetNparams() = 0;
25  /*! The copy constructor is empty and will be removed in the future*/
27  virtual ~GeneralTranscribe();
28  };
29  /* @} */
30  }
31 #endif // CGENERALTRANSCRIBE_H
ublas::vector< double > ttranscribed
Definition: gentypes.h:21
virtual ttranscribed GetValues(const tpopmember &member)=0
ublas::vector< bool > tpopmember
Definition: gentypes.h:22
General Transcribe base class for genetic algorithm parameter transcription.
virtual int GetNparams()=0