configure
, make
,
make install
steps (please take a look at ./configure --help
for configuration options):
I advice you to use stow, a wonderful tool to activate/desactivate different versions for the same program compiled by autotools. You'll then typically install LibGEP as follows:
$ tar xvzf libgep-0.4.tar.gz
$ cd libgep-0.4
$ ./configure
$ make
$ make install
Note: Use
$ ./configure --prefix=/usr/local/stow/libgep-0.4
$ make
$ make install
$ cd /usr/local/stow
$ sudo stow libgep-0.4
stow -D
to disable a given release.
FT::Cheater
class which is usable in LibGEP if you configure it with the
cheat mode enabled:
./configure --enable-cheat-mode
configure
' script.
You can access this documentation using this link.
./configure --with-doc
GEP::Chromosome
object.
A GEP::Chromosome
objet is used to store the tree structure and is
translated into it when the calculateValue()
method is invoked. GEP::Individual
object encloses a Chromosome.
The main methods used by an Individual are evaluate(param)
,
calculateFitness()
and reset()
.
You might refer to the respective descriptions in the header file.GEP::Population
object stores a set of Individuals and manages them.
The management includes invoking selection, recombination and mutation operators as well
as updating the elite and copying it to newly created population.GEP::GEPAlg
object is managing the Population by executing the
loops of generations and loops of independent runs.
The GEPAlg
object stores training and testing sets (if any), records the
best individuals, statistics and population contents.
CustomOneArg
or CustomTwoArg
functions,
that inherit from oneArg
or twoArg
, respectively
and implement operator()
and name()
functions.
CustomIndividual
class that inherits from
Individual
and implements evaluate()
,
calculateFitness()
and reset()
methods.
Individual
class is problem-dependent
(see examples for implementation of minimum square approximation method).
CustomPopulation
class that inherits from
Population
and implements population generation, modification and
management methods.
GEP::CellPopulation
and
GEP::MergePopulation
for instance).
CustomGEPAlg
class that inherits from GEPAlg
and
implements global population management methods, learning set modification
methods and custom statistics.
It is done mostly in four functions:
runStart()
: a preamble of an independent runrunEnd()
: a postamble of an independent rungenStart()
: a preamble of a generationgenEnd()
: a postamble of a generationexamples
directory.