public class SSEA2D extends AbstractMethod
Modifier and Type | Field and Description |
---|---|
int |
MINIMUMLIFETIMEELITE
defines how many Generations an elite-member must exist
|
int |
MUTATIONSEVERITY
defines the severity of the mutation 0 ......
|
int |
NEIGHBOURHOODMODE
mode how the neighborhood of a member is defined
|
int |
NUMBEROFNEIGHBORS
defines the shape of the curve which represents the correlation between
the rank of the fitness in the Neighborhood and the severity of the
mutation.
|
float |
PERCENTELITE
defines how many Members are elite.
|
int |
PERCENTMUTATEELITE
defines how many representations that are not elite create a mutation of
a random elite-neighbor
|
int |
PERCENTXOVERELITE
defines how many representations that are not elite create an offspring
with a random elite-neighbor
|
int |
POPULATIONFIELDSIZE
length of the population field.
|
int |
POPULATIONSIZE
number of representations in the population
|
Constructor and Description |
---|
SSEA2D(NESRandom random)
Constructs a new SSEA2D object
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.util.ArrayList<AbstractRepresentation>> |
loadFromXML(org.dom4j.Document doc)
Returns a 2D array of representations from the given XML result file.
|
void |
runOptimization(ProblemXMLData problemData,
ComponentXMLData representationData,
ComponentXMLData rankingData,
java.util.Hashtable<java.lang.String,XMLFieldEntry> properties) |
org.dom4j.Element |
saveResults(int generation)
Saves all population data to a new XML element and returns it.
|
getProgress, getRandom, getSeed, pause, setProgress, setRandom, setRandom, wakeUp
getProperties, getPropertyValue, getTypeOfProperty, getXMLData, setProperties, setXMLData
public int POPULATIONFIELDSIZE
public int POPULATIONSIZE
public int NEIGHBOURHOODMODE
public int NUMBEROFNEIGHBORS
public float PERCENTELITE
public int MINIMUMLIFETIMEELITE
public int MUTATIONSEVERITY
public int PERCENTMUTATEELITE
public int PERCENTXOVERELITE
public SSEA2D(NESRandom random)
public void runOptimization(ProblemXMLData problemData, ComponentXMLData representationData, ComponentXMLData rankingData, java.util.Hashtable<java.lang.String,XMLFieldEntry> properties)
runOptimization
in class AbstractMethod
public org.dom4j.Element saveResults(int generation)
public java.util.ArrayList<java.util.ArrayList<AbstractRepresentation>> loadFromXML(org.dom4j.Document doc)
AbstractMethod
If the loading takes considerable amount of time it is advised to provide visual feedback to the user. This can be done by calling the
FrevoMain.setLoadingProgress(float)
method.
loadFromXML
in class AbstractMethod
doc
- The source Document
to be used for loading the representations.