|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectDistributedEvolutionaryAlgorithmsFramework.Deaf
public class Deaf
Main file of the framework
| Nested Class Summary | |
|---|---|
static class |
Deaf.IslandMapper
Class for Hadoop framework. |
| Field Summary | |
|---|---|
static int |
dimensions
|
static int |
migratingPopSize
|
| Constructor Summary | |
|---|---|
Deaf(java.lang.Class<? extends FitnessFunction> fitFunction,
int D,
java.lang.Class<? extends Algorithm> algorithm,
int generationsPerRound,
int islandCount,
int populationSize,
int migratingIndividuals)
|
|
| Method Summary | |
|---|---|
void |
addSubpopulaionsConfig(java.lang.Class<? extends Algorithm> alg,
int popSize,
java.util.Map<java.lang.String,java.lang.Double> subpopParameters)
|
void |
addSubpopulaionsConfig(java.lang.Class<? extends Algorithm> alg,
java.util.Map<java.lang.String,java.lang.Double> subpopParameters)
|
static void |
log(java.lang.String msg)
|
Individual |
run(int rounds)
Runs the hadoop framework with defined settings. |
void |
setEmigrationMethod(Population.expelEmigrantsMethod met)
Determines how emigrating individuals are chosen. |
void |
setHistoryPath(java.lang.String r)
|
void |
setImmigrationMethod(Population.acceptImmigrantsMethod met)
Determines how immigrating individuals are handled. |
void |
setMapTasks(int mapTasks)
Setting for hadoop. |
void |
setRepeatedTest(boolean b)
|
void |
setTopology(java.lang.Class<? extends Topology> top)
|
void |
setVerbose(boolean verb)
If verbose setting is set to true, all populations with all their individuals will be written to Logger |
void |
setWriteHistory(boolean b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int dimensions
public static int migratingPopSize
| Constructor Detail |
|---|
public Deaf(java.lang.Class<? extends FitnessFunction> fitFunction,
int D,
java.lang.Class<? extends Algorithm> algorithm,
int generationsPerRound,
int islandCount,
int populationSize,
int migratingIndividuals)
fitFunction - FitnessFunction class implementation with optimalized fitness function.D - Number of dimensions of defined fitness function.algorithm - Algorithm class implementation with computational algorithm for optimalization of fitness functiongenerationsPerRound - Number of generations (cycles of algorithm)islandCount - Number of islands for populations. Equals number of Hadoop Map Tasks if not set with setMapTasks().populationSize - Default size of populations if not set specifically.migratingIndividuals - Default number of migrating individuals if not set specifically.| Method Detail |
|---|
public void addSubpopulaionsConfig(java.lang.Class<? extends Algorithm> alg,
int popSize,
java.util.Map<java.lang.String,java.lang.Double> subpopParameters)
alg - Population specific algorithpopSize - Population specific population sizesubpopParameters - Map collection of parameters for given algorithm
public void addSubpopulaionsConfig(java.lang.Class<? extends Algorithm> alg,
java.util.Map<java.lang.String,java.lang.Double> subpopParameters)
alg - Population specific algorithsubpopParameters - Map collection of parameters for given algorithmpublic void setTopology(java.lang.Class<? extends Topology> top)
top - Topology extending class defining the topology of islands (determines the destination island for migrating population)public void setImmigrationMethod(Population.acceptImmigrantsMethod met)
met - One of Population.acceptImmigrantsMethod (REPLACE_WORST, REPLACE_BEST, REPLACE_RANDOM, NO_REPLACE).public void setEmigrationMethod(Population.expelEmigrantsMethod met)
met - One of Population.expelEmigrantsMethod (EXPEL_BEST, EXPEL_RANDOM).public void setVerbose(boolean verb)
verb - true/falsepublic void setRepeatedTest(boolean b)
public void setWriteHistory(boolean b)
public void setHistoryPath(java.lang.String r)
public void setMapTasks(int mapTasks)
mapTasks - number of Hadoop Map Tasks
public Individual run(int rounds)
throws java.io.IOException,
ConfigurationException
rounds - Number of rounds/migrations
java.io.IOException
ConfigurationExceptionpublic static void log(java.lang.String msg)
msg - Message to write to Logger with Level.INFO
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||