| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlio.LiOTask
problems.permutation.PermutationExample
public class PermutationExample
Implements a Dummy task for permutations whose optimum is that whose value in position "i" is "i".
| Field Summary | |
|---|---|
(package private)  int | 
size
Size of the problem  | 
| Constructor Summary | |
|---|---|
PermutationExample()
 | 
|
| 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()
Getter for property size.  | 
 double | 
optimum()
Returns the optimum of the function.  | 
 void | 
setSize(int size)
Setter for property size.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
int size
| Constructor Detail | 
|---|
public PermutationExample()
| Method Detail | 
|---|
public LiOBounds defineIndividuals()
defineIndividuals in class LiOTaskpublic double evaluate(Individual individual)
evaluate in class LiOTaskindividual - The individual that is going to be evaluated.
public double optimum()
optimum in class LiOTaskpublic LiOResourceDefinition getDefinition()
getDefinition in interface LiOResourcegetDefinition in class LiOTaskpublic int getSize()
public void setSize(int size)
size - New value of property size.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||