problems.bitchain
Class FC5

java.lang.Object
  extended by lio.LiOTask
      extended by problems.bitchain.FC5
All Implemented Interfaces:
LiOResource

public class FC5
extends LiOTask


Constructor Summary
FC5()
           
 
Method Summary
 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.
 double evaluate(Individual individual)
          Evaluates an individual and returns its fitness.
 LiOResourceDefinition getDefinition()
          Return a LiOResDescription object with the information of each object.
 int getNumSubProblems()
           
 double optimum()
          Returns the optimum of the function.
 void setNumSubProblems(int numSubProblems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FC5

public FC5()
Method Detail

defineIndividuals

public LiOBounds defineIndividuals()
Description copied from class: LiOTask
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.

Specified by:
defineIndividuals in class LiOTask
Returns:
a Bounds object which defines individuals.

evaluate

public double evaluate(Individual individual)
Description copied from class: LiOTask
Evaluates an individual and returns its fitness.

Specified by:
evaluate in class LiOTask
Parameters:
individual - The individual that is going to be evaluated.
Returns:
fitness of a individual.

getDefinition

public LiOResourceDefinition getDefinition()
Return a LiOResDescription object with the information of each object. That object holds the name and all parameters that describe the object

Specified by:
getDefinition in interface LiOResource
Overrides:
getDefinition in class LiOTask
Returns:
A definition of the object.

getNumSubProblems

public int getNumSubProblems()
Returns:
Returns the numSubProblems.

setNumSubProblems

public void setNumSubProblems(int numSubProblems)
Parameters:
numSubProblems - The numSubProblems to set.

optimum

public double optimum()
Description copied from class: LiOTask
Returns the optimum of the function. If this value is known, the function must be overloaded by the child classes.

Overrides:
optimum in class LiOTask
Returns:
Optimum of the task.