|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.algorithm.operator.selection.SelectionOperator
es.udc.gii.common.eaf.algorithm.operator.selection.ExtintionOperator
public class ExtintionOperator
This operator allows calculating the surviving individuals throug their relations, i.e., as a sum of penalties and benefits. The state of a given individual Si will be given by:
Si(t+1) = 1, if ∑Wi,j(t) ≥ 0
Si(t+1) = 0, otherwise
where t is the generation number and Wi,j = W(pi ,pj) is calculated according to:
Wi,j=(f(pi)-f(pj))/(|pi- pj|)
Configuration:
<Operator><p>
<Class>es.udc.gii.common.eaf.algorithm.operator.ExtintionOperator</Class>
</Operator>
Nested Class Summary | |
---|---|
protected class |
ExtintionOperator.Wxy
|
protected class |
ExtintionOperator.WxyMaximizing
|
protected class |
ExtintionOperator.WxyMinimizing
|
Constructor Summary | |
---|---|
ExtintionOperator()
|
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
Configures the specific element that implements this method. |
java.util.List<Individual> |
operate(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> individuals)
Execute this operator over a group of individuals. |
protected Individual |
select(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> individuals)
|
Methods inherited from class es.udc.gii.common.eaf.algorithm.operator.selection.SelectionOperator |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExtintionOperator()
Method Detail |
---|
public void configure(org.apache.commons.configuration.Configuration conf)
Configurable
configure
in interface Configurable
configure
in class SelectionOperator
conf
- a Configuration object.Configuration
public java.util.List<Individual> operate(EvolutionaryAlgorithm algorithm, java.util.List<Individual> individuals) throws OperatorException
Operator
This method will recive two parameters. The current algorithm, to visit it if it is necessary, for example, to get some parameter of the current execution. And a list of individuals on wich we will apply this operator.
operate
in interface Operator
operate
in class SelectionOperator
algorithm
- the current algorithm, to visit when it is necessary.individuals
- list of individuals on wich we will apply the operator.
OperatorException
- when occurs some type of error during the execution of this operator.protected Individual select(EvolutionaryAlgorithm algorithm, java.util.List<Individual> individuals)
select
in class SelectionOperator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |