es.udc.gii.common.eaf.algorithm.parallel.migration.selection
Class BestMigration
java.lang.Object
es.udc.gii.common.eaf.algorithm.parallel.migration.selection.BestMigration
- All Implemented Interfaces:
- MigSelectionStrategy, Configurable
public class BestMigration
- extends java.lang.Object
- implements MigSelectionStrategy
A selection strategy for selecting the best individuals of the current population
for migrating to other islands.
- Author:
- Rafael Tedin Alvarez
Constructor Summary |
BestMigration()
Creates a new instance of BestMigration |
BestMigration(int howMany)
Creates a new instance of BestMigration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
howMany
private int howMany
BestMigration
public BestMigration()
- Creates a new instance of BestMigration
BestMigration
public BestMigration(int howMany)
- Creates a new instance of BestMigration
getIndividualsForMigration
public java.util.List<Individual> getIndividualsForMigration(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> individuals)
- Description copied from interface:
MigSelectionStrategy
- Returns th individuals that can migrate to other processes. If no individuals
are chosen an empty list is returned.
- Specified by:
getIndividualsForMigration
in interface MigSelectionStrategy
configure
public void configure(org.apache.commons.configuration.Configuration conf)
- Specified by:
configure
in interface Configurable
getHowMany
public int getHowMany()
setHowMany
public void setHowMany(int howMany)