problems.bitchain
Class SixPeaks

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

public class SixPeaks
extends LiOTask

Implements the deceptive Six Peaks function.


Field Summary
(package private)  int size
          Size of the problem
(package private)  double t
          Parameter t
 
Constructor Summary
SixPeaks()
           
 
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 getSize()
           
 double getT()
           
 double optimum()
          Returns the optimum of the function.
 void setSize(int size)
           
 void setT(double t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

int size
Size of the problem


t

double t
Parameter t

Constructor Detail

SixPeaks

public SixPeaks()
Method Detail

defineIndividuals

public 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.

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

evaluate

public double evaluate(Individual individual)
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.

optimum

public double optimum()
Returns the optimum of the function.

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

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.

getSize

public int getSize()
Returns:
Returns the size.

setSize

public void setSize(int size)
Parameters:
size - The size to set.

getT

public double getT()
Returns:
Returns the t.

setT

public void setT(double t)
Parameters:
t - The t to set.