|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--anthill.genie.impl.FindingFitness
Evaluate the fitness of a particular ant algorithm based on the statistics collected during its simulation.
This implementation returns the ratio between the number of resources found and the number of resources searched.
Used keys: FoundResources, RequestedResources
Constructor Summary | |
FindingFitness()
|
Method Summary | |
float |
compute(Stats stats)
Evaluate the fitness of a particular ant algorithm based on the statistics collected during its simulation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FindingFitness()
Method Detail |
public float compute(Stats stats)
This implementation returns the ratio between the number of resources found and the number of resources searched.
compute
in interface Fitness
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |