|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.LiOTask
public abstract class LiOTask
This abstract class must be extended for those classes which define tasks to be solved.
Constructor Summary | |
---|---|
LiOTask()
|
Method Summary | |
---|---|
abstract LiOBounds |
defineIndividuals()
In most cases, it is necessary to define some common features of a certain kind of individual such as upper and lower limits, size, etc. |
abstract double |
evaluate(Individual individual)
Evaluates an individual and returns its fitness. |
LiOResourceDefinition |
getDefinition()
This class must be overloaded if the task has to give information about itself to the LiO core. |
double |
optimum()
Returns the optimum of the function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LiOTask()
Method Detail |
---|
public abstract LiOBounds defineIndividuals()
public abstract double evaluate(Individual individual)
individual
- The individual that is going to be evaluated.
public double optimum()
public LiOResourceDefinition getDefinition()
getDefinition
in interface LiOResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |