# ArtificialBeeColony Class Reference [Algorithms, Sequential algorithms]

Artificial Bee Colony algorithm (see e.g. http://www.scholarpedia.org/article/Artificial_bee_colony_algorithm)ABC algorithm accepts only a single FloatingPoint genotype (vector of real values). Additionally, it adds the following genotype for algorithm implementation:

• FloatingPoint genotype as trial (a cycle counter for each individual).
More...

#include <AlgArtificialBeeColony.h>

Inheritance diagram for ArtificialBeeColony:

List of all members.

## Public Member Functions

void registerParameters (StateP state)
Register algorithm's parameters (if any).
bool initialize (StateP state)
Initialize the algorithm, read parameters from the system, do a sanity check.
bool advanceGeneration (StateP state, DemeP deme)
Perform a single generation on a single deme.

## Protected Member Functions

bool employedBeesPhase (StateP state, DemeP deme)
bool onlookerBeesPhase (StateP state, DemeP deme)
bool calculateProbabilities (StateP state, DemeP deme)
bool scoutBeesPhase (StateP state, DemeP deme)
bool createNewFoodSource (IndividualP food, StateP state, DemeP deme)

## Protected Attributes

SelRandomOpP selRandomOp
SelBestOpP selBestOp
SelWorstOpP selWorstOp
SelFitnessProportionalOpP selFitOp
uint limit_
bool elitism_
double ubound_
double lbound_
std::vector< double > probability_

## Detailed Description

Artificial Bee Colony algorithm (see e.g. http://www.scholarpedia.org/article/Artificial_bee_colony_algorithm)

ABC algorithm accepts only a single FloatingPoint genotype (vector of real values). Additionally, it adds the following genotype for algorithm implementation:

• FloatingPoint genotype as trial (a cycle counter for each individual).

Definition at line 17 of file AlgArtificialBeeColony.h.

## Member Function Documentation

 bool ArtificialBeeColony::advanceGeneration ( StateP , DemeP ) [virtual]

Perform a single generation on a single deme.

Must be implemented by a specific algorithm class

Implements Algorithm.

Definition at line 99 of file AlgArtificialBeeColony.cpp.

 bool ArtificialBeeColony::initialize ( StateP ) [virtual]

Initialize the algorithm, read parameters from the system, do a sanity check.

Called by the system before the algorithm starts (Algorithm::advanceGeneration)

Reimplemented from Algorithm.

Definition at line 36 of file AlgArtificialBeeColony.cpp.

 void ArtificialBeeColony::registerParameters ( StateP ) [virtual]

Register algorithm's parameters (if any).

Called by the system before algorithm initialization (Algorithm::initialize)

Reimplemented from Algorithm.

Definition at line 25 of file AlgArtificialBeeColony.cpp.

The documentation for this class was generated from the following files: