ECF 1.5
Public Member Functions | Public Attributes | List of all members
LexiCaseFitnessMin Class Reference

Fitness for minimization problems. More...

#include <LexiCaseFitnessMin.h>

Inheritance diagram for LexiCaseFitnessMin:
Fitness Fitness Fitness

Public Member Functions

bool isBetterThan (FitnessP other, uint index=0)
 
void write (XMLNode &)
 Write fitness object to XMLNode. More...
 
LexiCaseFitnessMincopy ()
 object copy (for duplication of an individual) More...
 
double getValue ()
 Return fitness value. More...
 
bool isBetterThan (FitnessP other, uint index=0)
 
void write (XMLNode &)
 Write fitness object to XMLNode. More...
 
LexiCaseFitnessMincopy ()
 object copy (for duplication of an individual) More...
 
double getValue ()
 Return fitness value. More...
 
bool isBetterThan (FitnessP other, uint index=0)
 
void write (XMLNode &)
 Write fitness object to XMLNode. More...
 
LexiCaseFitnessMincopy ()
 object copy (for duplication of an individual) More...
 
double getValue ()
 Return fitness value. More...
 
- Public Member Functions inherited from Fitness
virtual bool isBetterThan (FitnessP)=0
 Mandatory comparison operator. More...
 
virtual Fitnesscopy ()=0
 object copy (for duplication of an individual) More...
 
bool isValid ()
 Is fitness object up to date. More...
 
void setInvalid ()
 Set fitness object to invalid state (called after any change of individual's genotype). More...
 
virtual void setValue (double value)
 Set fitness value. More...
 
virtual double getValue ()
 Return fitness value. More...
 
virtual void write (XMLNode &)
 Write fitness object to XMLNode. More...
 
std::string toString ()
 Output fitness XML format as std::string. More...
 
virtual void read (XMLNode &xFitness)
 Read single fitness value from XML node. If the value is undefined (e.g. when reading unevaluated individual from XMLNode), validity is set to false. More...
 

Public Attributes

std::vector< double > vektor
 
- Public Attributes inherited from Fitness
uint cid
 coherence index, used in asynchronous parallel algoritmhs More...
 

Additional Inherited Members

- Protected Attributes inherited from Fitness
bool valid_
 is fitness value up-to-date More...
 
double value_
 actual fitness value More...
 
Individualindividual_
 

Detailed Description

Fitness for minimization problems.

Fitness is better if the fitness value is smaller.

Definition at line 12 of file LexiCaseFitnessMin.h.

Constructor & Destructor Documentation

◆ LexiCaseFitnessMin() [1/3]

LexiCaseFitnessMin::LexiCaseFitnessMin ( )
inline

Definition at line 14 of file LexiCaseFitnessMin.h.

◆ LexiCaseFitnessMin() [2/3]

LexiCaseFitnessMin::LexiCaseFitnessMin ( )
inline

Definition at line 14 of file LexiCaseFitnessMin.h.

◆ LexiCaseFitnessMin() [3/3]

LexiCaseFitnessMin::LexiCaseFitnessMin ( )
inline

Definition at line 14 of file LexiCaseFitnessMin.h.

Member Function Documentation

◆ copy() [1/3]

LexiCaseFitnessMin * LexiCaseFitnessMin::copy ( )
virtual

object copy (for duplication of an individual)

Implements Fitness.

◆ copy() [2/3]

LexiCaseFitnessMin * LexiCaseFitnessMin::copy ( )
virtual

object copy (for duplication of an individual)

Implements Fitness.

◆ copy() [3/3]

LexiCaseFitnessMin * LexiCaseFitnessMin::copy ( )
virtual

object copy (for duplication of an individual)

Implements Fitness.

◆ getValue() [1/3]

double LexiCaseFitnessMin::getValue ( )
inlinevirtual

Return fitness value.

Reimplemented from Fitness.

Definition at line 20 of file LexiCaseFitnessMin.h.

◆ getValue() [2/3]

double LexiCaseFitnessMin::getValue ( )
inlinevirtual

Return fitness value.

Reimplemented from Fitness.

Definition at line 20 of file LexiCaseFitnessMin.h.

◆ getValue() [3/3]

double LexiCaseFitnessMin::getValue ( )
inlinevirtual

Return fitness value.

Reimplemented from Fitness.

Definition at line 20 of file LexiCaseFitnessMin.h.

◆ write() [1/3]

void LexiCaseFitnessMin::write ( XMLNode &  )
virtual

Write fitness object to XMLNode.

Reimplemented from Fitness.

◆ write() [2/3]

void LexiCaseFitnessMin::write ( XMLNode &  )
virtual

Write fitness object to XMLNode.

Reimplemented from Fitness.

◆ write() [3/3]

void LexiCaseFitnessMin::write ( XMLNode &  )
virtual

Write fitness object to XMLNode.

Reimplemented from Fitness.

Member Data Documentation

◆ vektor

std::vector< double > LexiCaseFitnessMin::vektor

Definition at line 24 of file LexiCaseFitnessMin.h.


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