MOEA Framework 2.12
API Specification

org.moeaframework.core.operator.real
Class DifferentialEvolutionSelection

java.lang.Object
  extended by org.moeaframework.core.operator.real.DifferentialEvolutionSelection
All Implemented Interfaces:
Selection

public class DifferentialEvolutionSelection
extends Object
implements Selection

Selection operator to be used in conjunction with the DifferentialEvolutionVariation operator. The select method returns the solutions [currentIndex, r1, r2, ...], where currentIndex is set using the setCurrentIndex(int) method and r1, r2, ... are randomly selected solutions. The returned solutions are guaranteed to have unique indices in the population, but the solutions themselves may not be unique if the population contains duplicate solutions.


Constructor Summary
DifferentialEvolutionSelection()
          Constructs a differential evolution selection operator.
 
Method Summary
 Solution[] select(int arity, Population population)
          Returns an array of length arity of solutions selected from the specified population.
 void setCurrentIndex(int currentIndex)
          Sets the current index, which is the index of the first solution returned by the select method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DifferentialEvolutionSelection

public DifferentialEvolutionSelection()
Constructs a differential evolution selection operator.

Method Detail

setCurrentIndex

public void setCurrentIndex(int currentIndex)
Sets the current index, which is the index of the first solution returned by the select method. If set to -1, then the current index is randomly assigned each time select(int, Population) is invoked.

Parameters:
currentIndex - the current index

select

public Solution[] select(int arity,
                         Population population)
Description copied from interface: Selection
Returns an array of length arity of solutions selected from the specified population.

Specified by:
select in interface Selection
Parameters:
arity - the number of solutions selected from the specified population
population - the population from which solutions are selected
Returns:
an array of length arity of solutions selected from the specified population

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!