#include <cFibObjectFitnessAlgorithm.h>
List of all members.
Detailed Description
Constructor & Destructor Documentation
enviroment::fib::cFibObjectFitnessAlgorithm::cFibObjectFitnessAlgorithm |
( |
| ) |
|
enviroment::fib::cFibObjectFitnessAlgorithm::cFibObjectFitnessAlgorithm |
( |
cFibIndividual * |
pInOriginalIndividual | ) |
|
constructor
- Parameters:
-
pInOriginalIndividual | the individual with which the fitness should be evalued; Beware: this object won't be copied, so don't delete it as long as this object exists |
enviroment::fib::cFibObjectFitnessAlgorithm::cFibObjectFitnessAlgorithm |
( |
cFibElement * |
pInOriginalFibObject | ) |
|
constructor
- Parameters:
-
pInOriginalFibObject | the Fib object with which the fitness should be evalued; Beware: this object won't be copied, so don't delete it as long as this object exists |
enviroment::fib::cFibObjectFitnessAlgorithm::cFibObjectFitnessAlgorithm |
( |
const cFibElement & |
inOriginalFibObject | ) |
|
constructor
- Parameters:
-
inOriginalFibObject | the fib object with which the fitness should be evalued; |
enviroment::fib::cFibObjectFitnessAlgorithm::cFibObjectFitnessAlgorithm |
( |
const cFibObjectFitnessAlgorithm & |
objectFitnessAlgorithm | ) |
|
copyconstructor
- Parameters:
-
virtual enviroment::fib::cFibObjectFitnessAlgorithm::~cFibObjectFitnessAlgorithm |
( |
| ) |
|
|
virtual |
Member Function Documentation
cRoot* enviroment::fib::cFibObjectFitnessAlgorithm::createRootTree |
( |
const cFibElement * |
pFibObject | ) |
|
|
protected |
This function extracts the root -element tree from the Fib object. The root -elements will have the same structur as in the given Fib object, but empty points for ther main -Fib objects. Beware: delete the returnd fib object after usage.
- Parameters:
-
pFibObject | the Fib object wher to extract the root -elements |
- Returns:
- a Fib object with just root -elements of the given Fib object pFibObject
This function evalues the fitness for the given fib -individual. Beware: You have to delete the returned fitness after usage.
- See also:
- pOriginalIndividual
- Parameters:
-
individual | the cFibIndividual for which a fitnessobject should be created |
- Returns:
- the fitnessobject for the fitness of the given individual or NULL, if no fitness could be created
Implemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.
This function evalues the fitness for the given fib -individual. Beware: You have to delete the returned fitness after usage.
- See also:
- pOriginalIndividual
- Parameters:
-
individual | the cFibIndividual for which a fitnessobject should be created |
- Returns:
- the fitnessobject for the fitness of the given individual or NULL, if no fitness could be created
Implemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.
bool enviroment::fib::cFibObjectFitnessAlgorithm::evalueOriginalDimensions |
( |
| ) |
const |
|
protected |
virtual const cFibObjectFitness* enviroment::fib::cFibObjectFitnessAlgorithm::getBestFitness |
( |
| ) |
const |
|
pure virtual |
This Method returns the best possible fitness the algorithm can create. No individual with a better/ higher fitness can be created with this algorithm. Normaly this would be an indivudual which represents the original individual perfectly and don't use recources. If no best possible fitness can be evalued NULL is returned.
- Returns:
- a refernce to the best possible fitness or NULL, if non can be creted
Implements enviroment::cObjectFitnessAlgorithm.
Implemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.
virtual string enviroment::fib::cFibObjectFitnessAlgorithm::getClassName |
( |
| ) |
const |
|
virtual |
const cFibElement* enviroment::fib::cFibObjectFitnessAlgorithm::getOriginalFibObject |
( |
| ) |
|
cFibIndividual* enviroment::fib::cFibObjectFitnessAlgorithm::getOriginalIndividual |
( |
| ) |
|
const cRoot* enviroment::fib::cFibObjectFitnessAlgorithm::getOriginalIndividualRoot |
( |
| ) |
|
- See also:
- setOriginalIndividual()
-
getOriginalIndividual()
-
pOriginalIndividual
- Returns:
- a pointer to the originalindividual root -elements or NULL if non exists; The originalindividual is the individual with which the fitness is evalued. This methods will yust return ther root -elements, with the main -Fib objects set to NULL.
const cEvaluePositionList* enviroment::fib::cFibObjectFitnessAlgorithm::getOriginalPositionList |
( |
| ) |
const |
- Returns:
- the evalued positionslist of the original Fib object or NULL, if no exists
virtual const cFibObjectFitness* enviroment::fib::cFibObjectFitnessAlgorithm::getWorstCaseFitness |
( |
| ) |
const |
|
pure virtual |
This Method returns the worst case fitness for the algorithm and originalindividual. An individual with the worst case fitness can easyly be created. Normaly this would be the fitness of the originalindividual. If no worst case fitness can be evalued NULL is returned.
- Returns:
- a refernce to the worst case fitness or NULL, if non can be created
Implements enviroment::cObjectFitnessAlgorithm.
Implemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.
virtual bool enviroment::fib::cFibObjectFitnessAlgorithm::setOriginalFibObject |
( |
cFibElement * |
pInOriginalFibObject | ) |
|
|
virtual |
This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.
- See also:
- getOriginalIndividual()
-
pOriginalIndividual
- Parameters:
-
pInOriginalFibObject | the Fib object with which the fitness should be evalued; Beware: this object won't be copied, so don't delete it as long as this object exists |
- Returns:
- true if the originalindividual is set to pInOriginalFibObject, else false
Reimplemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.
virtual bool enviroment::fib::cFibObjectFitnessAlgorithm::setOriginalIndividual |
( |
cIndividual * |
pInOriginalIndividual | ) |
|
|
virtual |
virtual bool enviroment::fib::cFibObjectFitnessAlgorithm::setOriginalIndividual |
( |
cFibIndividual * |
pInOriginalIndividual | ) |
|
|
virtual |
This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.
- See also:
- getOriginalIndividual()
-
pOriginalIndividual
- Parameters:
-
pInOriginalIndividual | a point to the fib -originalindividual to set Beware: this object won't be copied, so don't delete it as long as this object exists |
- Returns:
- true if the originalindividual is set to pInOriginalIndividual, else false
Reimplemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.
Member Data Documentation
bool enviroment::fib::cFibObjectFitnessAlgorithm::bOriginalEvalued |
|
mutableprotected |
If true the positionsdata of the original Fib object liEvaluedPositionsDataOriginal was evalued, else false.
Definition at line 92 of file cFibObjectFitnessAlgorithm.h.
bool enviroment::fib::cFibObjectFitnessAlgorithm::bOriginalIsFibObject |
|
protected |
bool enviroment::fib::cFibObjectFitnessAlgorithm::bStandardDimensionDomain |
|
mutableprotected |
doubleFib* enviroment::fib::cFibObjectFitnessAlgorithm::pdDirectionMaximum |
|
mutableprotected |
doubleFib* enviroment::fib::cFibObjectFitnessAlgorithm::pdDirectionMinimum |
|
mutableprotected |
doubleFib* enviroment::fib::cFibObjectFitnessAlgorithm::pdDirectionScaling |
|
mutableprotected |
doubleFib* enviroment::fib::cFibObjectFitnessAlgorithm::pdDirectionSize |
|
mutableprotected |
cEvaluePositionList* enviroment::fib::cFibObjectFitnessAlgorithm::pEvaluedPositionsDataOriginal |
|
mutableprotected |
cRoot* enviroment::fib::cFibObjectFitnessAlgorithm::pOriginalRoots |
|
protected |
the root -elements of original object, without ther main -Fib objects (they are replaced by empty points)
Definition at line 74 of file cFibObjectFitnessAlgorithm.h.
unsigned int enviroment::fib::cFibObjectFitnessAlgorithm::uiNumberOfDimensions |
|
mutableprotected |
unsigned long long enviroment::fib::cFibObjectFitnessAlgorithm::ulNumberOfPoints |
|
mutableprotected |
The documentation for this class was generated from the following file: