Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

Chromosome Class Reference

Class representing a chromosome.

#include <Chromosome.h>

List of all members.

Public Member Functions

 Chromosome (MultiobjectiveProblem *problem, Random *random)
 Constructor.

 Chromosome (Chromosome &chromosome)
 Copy constructor.

 Chromosome (Chromosome *chromosome)
 Copy constructor.

 ~Chromosome ()
 Destructor.

Chromosomeoperator= (Chromosome &chromosome)

Public Attributes

int length_
 Chromosome lenght.

MultiobjectiveProblemproblem_
 Problem to solve.

Gene ** gene_
 Genes of the chromosome.


Friends

ostream & operator<< (ostream &outputStream, Chromosome &chromosome)


Constructor & Destructor Documentation

Chromosome::Chromosome MultiobjectiveProblem problem,
Random random
 

Parameters:
individual The individual to copy
Constructor of the class

Definition at line 17 of file Chromosome.cpp.

References BINARY, BINARY_GRAY_REAL, BINARY_REAL, gene_, length_, MultiobjectiveProblem::lowerLimit_, problem_, REAL, MultiobjectiveProblem::upperLimit_, and MultiobjectiveProblem::variable_.

Chromosome::Chromosome Chromosome chromosome  ) 
 

Parameters:
individual The individual to copy
Constructor of the class

Definition at line 64 of file Chromosome.cpp.

References BINARY, BINARY_GRAY_REAL, BINARY_REAL, gene_, length_, problem_, REAL, and MultiobjectiveProblem::variable_.

Chromosome::Chromosome Chromosome chromosome  ) 
 

Parameters:
individual The individual to copy
Constructor of the class

Definition at line 104 of file Chromosome.cpp.

References BINARY, BINARY_GRAY_REAL, BINARY_REAL, gene_, length_, problem_, REAL, and MultiobjectiveProblem::variable_.

Chromosome::~Chromosome  ) 
 

Destructor of the class

Definition at line 142 of file Chromosome.cpp.

References BINARY, BINARY_GRAY_REAL, BINARY_REAL, gene_, length_, problem_, REAL, and MultiobjectiveProblem::variable_.


Member Function Documentation

Chromosome & Chromosome::operator= Chromosome chromosome  ) 
 

Definition at line 169 of file Chromosome.cpp.

References BINARY, BINARY_GRAY_REAL, BINARY_REAL, gene_, length_, problem_, REAL, and MultiobjectiveProblem::variable_.


Friends And Related Function Documentation

ostream& operator<< ostream &  outputStream,
Chromosome chromosome
[friend]
 

Definition at line 196 of file Chromosome.cpp.


Member Data Documentation

Gene** Chromosome::gene_
 

Definition at line 31 of file Chromosome.h.

Referenced by Individual::bitFlipMutation(), Chromosome(), Constr_Ex::constraintsAreSafisfied(), Viennet4::constraintsAreSatisfied(), Tanaka::constraintsAreSatisfied(), Osyczka2::constraintsAreSatisfied(), Golinski::constraintsAreSatisfied(), Binh2::constraintsAreSatisfied(), Zdt2::evaluate(), Zdt1::evaluate(), Viennet4::evaluate(), Viennet3::evaluate(), Viennet2::evaluate(), Tanaka::evaluate(), Schaffer::evaluate(), Poloni::evaluate(), Osyczka2::evaluate(), OneMax::evaluate(), Kursawe::evaluate(), Golinski::evaluate(), Fonseca::evaluate(), Deb::evaluate(), Constr_Ex::evaluate(), Binh2::evaluate(), g(), Viennet4::numberOfNonSatisfiedConstraints(), Tanaka::numberOfNonSatisfiedConstraints(), Osyczka2::numberOfNonSatisfiedConstraints(), Golinski::numberOfNonSatisfiedConstraints(), Constr_Ex::numberOfNonSatisfiedConstraints(), Binh2::numberOfNonSatisfiedConstraints(), operator<<(), operator=(), Individual::polynomialMutation(), Population::printGenotype(), Individual::randomMutation(), Individual::uniformMutation(), and ~Chromosome().

int Chromosome::length_
 

Definition at line 29 of file Chromosome.h.

Referenced by Individual::bitFlipMutation(), Chromosome(), operator<<(), operator=(), Individual::polynomialMutation(), Individual::randomMutation(), Individual::uniformMutation(), and ~Chromosome().

MultiobjectiveProblem* Chromosome::problem_
 

Definition at line 30 of file Chromosome.h.

Referenced by Chromosome(), operator=(), and ~Chromosome().


The documentation for this class was generated from the following files:
Generated on Wed Feb 11 10:38:03 2004 for Paes by doxygen 1.3.3