#include <Individual.h>

Public Member Functions | |
| Individual (unsigned noChromosomes=0) | |
| Individual (unsigned, const Chromosome &) | |
| Individual (const Chromosome &) | |
| Individual (const Chromosome &, const Chromosome &) | |
| Individual (const Chromosome &, const Chromosome &, const Chromosome &) | |
| Individual (const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &) | |
| Individual (const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &) | |
| Individual (const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &) | |
| Individual (const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &) | |
| Individual (const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &, const Chromosome &) | |
| Individual (const std::vector< Chromosome * > &) | |
| Individual (const Individual &) | |
| virtual | ~Individual () |
| unsigned | size () const |
| unsigned | totalSize () const |
| double | fitnessValue () const |
| double | selectionProbability () const |
| bool | isFeasible () const |
| unsigned | numberOfCopies () const |
| bool | isElitist () const |
| void | setFitness (double fit) |
| void | setFeasible (bool f) |
| void | setSelectionProbability (double ps) |
| Chromosome & | operator[] (unsigned i) |
| const Chromosome & | operator[] (unsigned i) const |
| Individual & | operator= (const Individual &) |
| void | replace (unsigned i, const Chromosome &chrom) |
| void | insert (unsigned i, const Chromosome &chrom) |
| void | append (const Chromosome &chrom) |
| void | remove (unsigned i) |
| void | remove (unsigned from, unsigned to) |
| void | setAge (unsigned a=0) |
| void | incAge () |
| unsigned | getAge () const |
| template<class ChromosomeTemplate > | |
| void | append (const ChromosomeTemplate &chrom) |
| void | setLearnTime (unsigned lt=0) |
| unsigned | getLearnTime () const |
| void | setEvaluationFlag () |
| void | clearEvaluationFlag () |
| bool | needEvaluation () const |
| bool | operator== (const Individual &) const |
| bool | operator< (const Individual &) const |
| double | getFitness () const |
| double | getScaledFitness () const |
| void | setScaledFitness (double sf) |
| void | setSelProb (double sp) |
| double | getSelProb () const |
| void | setNumCopies (unsigned snc) |
| unsigned | getNumCopies () const |
| void | setEvalFlg (bool ef) |
| bool | getEvalFlg () const |
| bool | getFeasible () const |
| void | setElitist (bool e) |
| bool | getElitist () const |
| int | pvm_pkind () |
| int | pvm_upkind () |
Protected Attributes | |
| double | fitness |
| double | scaledFitness |
| bool | evalFlg |
| bool | feasible |
| double | selProb |
| unsigned | numCopies |
| bool | elitist |
| unsigned | age |
| unsigned | learnTime |
Friends | |
| class | Population |
| class | PopulationMOO |
| class | IndividualMOO |
| std::ostream & | operator<< (std::ostream &os, const Individual &ind) |
| std::istream & | operator>> (std::istream &is, Individual &ind) |
Definition at line 53 of file Individual.h.
| Individual::Individual | ( | unsigned | noChromosomes = 0 |
) | [explicit] |
| Individual::Individual | ( | unsigned | n, | |
| const Chromosome & | chrom | |||
| ) |
| Individual::Individual | ( | const Chromosome & | chrom0 | ) |
| Individual::Individual | ( | const Chromosome & | chrom0, | |
| const Chromosome & | chrom1 | |||
| ) |
| Individual::Individual | ( | const Chromosome & | chrom0, | |
| const Chromosome & | chrom1, | |||
| const Chromosome & | chrom2 | |||
| ) |
| Individual::Individual | ( | const Chromosome & | chrom0, | |
| const Chromosome & | chrom1, | |||
| const Chromosome & | chrom2, | |||
| const Chromosome & | chrom3 | |||
| ) |
| Individual::Individual | ( | const Chromosome & | chrom0, | |
| const Chromosome & | chrom1, | |||
| const Chromosome & | chrom2, | |||
| const Chromosome & | chrom3, | |||
| const Chromosome & | chrom4 | |||
| ) |
| Individual::Individual | ( | const Chromosome & | chrom0, | |
| const Chromosome & | chrom1, | |||
| const Chromosome & | chrom2, | |||
| const Chromosome & | chrom3, | |||
| const Chromosome & | chrom4, | |||
| const Chromosome & | chrom5 | |||
| ) |
| Individual::Individual | ( | const Chromosome & | chrom0, | |
| const Chromosome & | chrom1, | |||
| const Chromosome & | chrom2, | |||
| const Chromosome & | chrom3, | |||
| const Chromosome & | chrom4, | |||
| const Chromosome & | chrom5, | |||
| const Chromosome & | chrom6 | |||
| ) |
| Individual::Individual | ( | const Chromosome & | chrom0, | |
| const Chromosome & | chrom1, | |||
| const Chromosome & | chrom2, | |||
| const Chromosome & | chrom3, | |||
| const Chromosome & | chrom4, | |||
| const Chromosome & | chrom5, | |||
| const Chromosome & | chrom6, | |||
| const Chromosome & | chrom7 | |||
| ) |
| Individual::Individual | ( | const std::vector< Chromosome * > & | ) |
| Individual::Individual | ( | const Individual & | indiv | ) |
| Individual::~Individual | ( | ) | [virtual] |
| void Individual::append | ( | const ChromosomeTemplate & | chrom | ) | [inline] |
Appends Chromosomes to the Individual, refer also to Chromosome.h.
Definition at line 188 of file Individual.h.
References size().
| void Individual::append | ( | const Chromosome & | chrom | ) |
| void Individual::clearEvaluationFlag | ( | ) | [inline] |
| double Individual::fitnessValue | ( | ) | const [inline] |
| unsigned Individual::getAge | ( | ) | const [inline] |
| bool Individual::getElitist | ( | ) | const [inline] |
| bool Individual::getEvalFlg | ( | ) | const [inline] |
| bool Individual::getFeasible | ( | ) | const [inline] |
| double Individual::getFitness | ( | ) | const [inline] |
Definition at line 227 of file Individual.h.
References fitness.
Referenced by OnePlusOneES::bestSolutionsFitness(), OnePlusOneES::DoOneFifth(), OnePlusOneES::DoSelfAdaptation(), OnePlusOneES::DoSymmetricOneFifth(), CMAElitistSearch::run(), and ElitistCMA::SelectAndUpdateStrategyParameters().
| unsigned Individual::getLearnTime | ( | ) | const [inline] |
| unsigned Individual::getNumCopies | ( | ) | const [inline] |
| double Individual::getScaledFitness | ( | ) | const [inline] |
| double Individual::getSelProb | ( | ) | const [inline] |
| void Individual::incAge | ( | ) | [inline] |
| void Individual::insert | ( | unsigned | i, | |
| const Chromosome & | chrom | |||
| ) |
| bool Individual::isElitist | ( | ) | const [inline] |
| bool Individual::isFeasible | ( | ) | const [inline] |
| bool Individual::needEvaluation | ( | ) | const [inline] |
| unsigned Individual::numberOfCopies | ( | ) | const [inline] |
| bool Individual::operator< | ( | const Individual & | ind | ) | const |
| Individual & Individual::operator= | ( | const Individual & | indiv | ) |
The Chromosome method 'registerIndividual(Ind&,int)' was added, refer also to 'Chromosome.h'.
Definition at line 284 of file Individual.cpp.
References age, elitist, evalFlg, feasible, fitness, learnTime, numCopies, scaledFitness, selProb, and size().
| bool Individual::operator== | ( | const Individual & | ind | ) | const |
| const Chromosome& Individual::operator[] | ( | unsigned | i | ) | const [inline] |
Reimplemented in IndividualCT< CT >, IndividualT< T >, IndividualCT< ChromosomeT< T > >, and IndividualT< double >.
Definition at line 144 of file Individual.h.
References size().
| Chromosome& Individual::operator[] | ( | unsigned | i | ) | [inline] |
Reimplemented in IndividualCT< CT >, IndividualT< T >, IndividualCT< ChromosomeT< T > >, and IndividualT< double >.
Definition at line 138 of file Individual.h.
References size().
| int Individual::pvm_pkind | ( | ) |
Part of PVM-send routine for individuals
Definition at line 393 of file Individual.cpp.
References age, elitist, evalFlg, feasible, fitness, learnTime, numCopies, pvm_pkdouble(), pvm_pkuint(), scaledFitness, selProb, and size().
| int Individual::pvm_upkind | ( | ) |
Part of PVM-rceive routine for individuals
Definition at line 435 of file Individual.cpp.
References age, elitist, evalFlg, feasible, fitness, learnTime, numCopies, pvm_upkdouble(), pvm_upkuint(), scaledFitness, selProb, and size().
| void Individual::remove | ( | unsigned | from, | |
| unsigned | to | |||
| ) |
| void Individual::remove | ( | unsigned | i | ) |
| void Individual::replace | ( | unsigned | i, | |
| const Chromosome & | chrom | |||
| ) |
| double Individual::selectionProbability | ( | ) | const [inline] |
| void Individual::setAge | ( | unsigned | a = 0 |
) | [inline] |
| void Individual::setElitist | ( | bool | e | ) | [inline] |
| void Individual::setEvalFlg | ( | bool | ef | ) | [inline] |
| void Individual::setEvaluationFlag | ( | ) | [inline] |
Interface for a flag that indicates the neccessity of an individual to become evaluated
Definition at line 212 of file Individual.h.
References evalFlg.
| void Individual::setFeasible | ( | bool | f | ) | [inline] |
| void Individual::setFitness | ( | double | fit | ) | [inline] |
Definition at line 125 of file Individual.h.
References fitness, and scaledFitness.
Referenced by OnePlusOneES::DoOneFifth(), OnePlusOneES::DoSelfAdaptation(), OnePlusOneES::DoSymmetricOneFifth(), OnePlusOneES::init(), and CMAElitistSearch::run().
| void Individual::setLearnTime | ( | unsigned | lt = 0 |
) | [inline] |
Interface for a buffer that stores how many learning iterations an individual conducts per generation
Definition at line 199 of file Individual.h.
References learnTime.
| void Individual::setNumCopies | ( | unsigned | snc | ) | [inline] |
| void Individual::setScaledFitness | ( | double | sf | ) | [inline] |
| void Individual::setSelectionProbability | ( | double | ps | ) | [inline] |
| void Individual::setSelProb | ( | double | sp | ) | [inline] |
| unsigned Individual::size | ( | ) | const [inline] |
Definition at line 98 of file Individual.h.
Referenced by append(), OnePlusOneES::dimension(), Individual(), ElitistCMA::init(), insert(), operator<(), operator=(), operator==(), operator[](), pvm_pkind(), pvm_upkind(), remove(), replace(), totalSize(), and ~Individual().
| unsigned Individual::totalSize | ( | ) | const |
friend class IndividualMOO [friend] |
Definition at line 374 of file Individual.h.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Individual & | ind | |||
| ) | [friend] |
Definition at line 317 of file Individual.h.
| std::istream& operator>> | ( | std::istream & | is, | |
| Individual & | ind | |||
| ) | [friend] |
Definition at line 337 of file Individual.h.
friend class Population [friend] |
Definition at line 372 of file Individual.h.
friend class PopulationMOO [friend] |
Definition at line 373 of file Individual.h.
unsigned Individual::age [protected] |
Definition at line 311 of file Individual.h.
Referenced by getAge(), incAge(), operator=(), operator==(), pvm_pkind(), pvm_upkind(), and setAge().
bool Individual::elitist [protected] |
Definition at line 310 of file Individual.h.
Referenced by getElitist(), isElitist(), operator=(), operator==(), pvm_pkind(), pvm_upkind(), Population::selectTournament(), and setElitist().
bool Individual::evalFlg [protected] |
Definition at line 306 of file Individual.h.
Referenced by clearEvaluationFlag(), getEvalFlg(), needEvaluation(), operator=(), operator==(), pvm_pkind(), pvm_upkind(), setEvalFlg(), and setEvaluationFlag().
bool Individual::feasible [protected] |
Definition at line 307 of file Individual.h.
Referenced by getFeasible(), isFeasible(), operator=(), operator==(), pvm_pkind(), pvm_upkind(), and setFeasible().
double Individual::fitness [protected] |
Definition at line 304 of file Individual.h.
Referenced by Population::best(), fitnessValue(), getFitness(), Population::greaterFitness(), Population::greaterScoreAscending(), Population::greaterScoreDescending(), Population::lessFitness(), operator=(), operator==(), pvm_pkind(), pvm_upkind(), setFitness(), and Population::worst().
unsigned Individual::learnTime [protected] |
Definition at line 314 of file Individual.h.
Referenced by getLearnTime(), operator=(), operator==(), pvm_pkind(), pvm_upkind(), and setLearnTime().
unsigned Individual::numCopies [protected] |
Definition at line 309 of file Individual.h.
Referenced by getNumCopies(), numberOfCopies(), operator=(), operator==(), pvm_pkind(), pvm_upkind(), Population::selectTournament(), and setNumCopies().
double Individual::scaledFitness [protected] |
Definition at line 305 of file Individual.h.
Referenced by getScaledFitness(), Population::greaterScoreAscending(), Population::greaterScoreDescending(), operator=(), operator==(), pvm_pkind(), pvm_upkind(), Population::selectOneIndividual(), setFitness(), and setScaledFitness().
double Individual::selProb [protected] |
Definition at line 308 of file Individual.h.
Referenced by getSelProb(), operator=(), operator==(), pvm_pkind(), pvm_upkind(), selectionProbability(), setSelectionProbability(), and setSelProb().