|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectgeneticWedge.gp.PopulationDescriptor
public class PopulationDescriptor
PopulationDescriptor holds the information required to create a Population object. Properties include minimum and maximum tree depths, grow method (GROW, FULL or RAMPED_HALF_AND_HALF), Function and Terminal lists, etc.
Nested Class Summary | |
---|---|
static class |
PopulationDescriptor.PopulationGrowMethod
PopulationGrowMethod determines the method used to 'grow' the Individuals within a Population |
Constructor Summary | |
---|---|
PopulationDescriptor(PopulationDescriptor.PopulationGrowMethod growMethod,
int minTreeDepth,
int maxTreeDepth,
Function[] functions,
Input[] inputs,
Constant[] constants)
Creates a PopulationDescriptor object with a growMethod, minimum and maximum tree depths and arrays of Functions, Constants and Inputs to be used in constructing Individuals. |
|
PopulationDescriptor(PopulationDescriptor.PopulationGrowMethod growMethod,
int minTreeDepth,
int maxTreeDepth,
Function[] functions,
Input[] inputs,
Constant[] constants,
double growFunctionProportion)
Creates a PopulationDescriptor object with a growMethod, minimum and maximum tree depths, arrays of Functions, Constants and Inputs to be used in constructing Individuals and a growFunctionProportion. |
Method Summary | |
---|---|
void |
addMutatedConstant(double value)
When CONSTANT_VALUE mutation is included as a mutation operation, new Constant objects may be created. |
boolean |
getAllowCombinedOp()
Returns allowCombinedOp. |
Constant[] |
getConstants()
Returns the array of Constants used when constructing a Population. |
int |
getEliteSize()
Returns the size of the elite. |
Function[] |
getFunctions()
Returns the array of Functions used when constructing a Population. |
double |
getGrowFunctionProportion()
Returns the growFunctionProportion used when constructing a Population. |
PopulationDescriptor.PopulationGrowMethod |
getGrowMethod()
Returns the PopulationGrowMethod used when constructing a Population. |
int |
getInitialSelectionPressure()
|
Input[] |
getInputs()
Returns the array of Inputs used when constructing a Population. |
int |
getMaxTreeDepth()
Returns the maximum tree depth used when constructing a Population. |
int |
getMinTreeDepth()
Returns the minimum tree depth used when constructing a Population. |
java.util.Vector<java.lang.Double> |
getMutatedConstants()
When CONSTANT_VALUE mutation is included as a mutation operation, new Constant objects may be created. |
double |
getMutationProportion()
Returns the probability of mutation occurring during the creation of offspring. |
double |
getReproductionProportion()
Returns the probability of reproduction (cloning) occurring during the creation of offspring. |
void |
resetMutatedConstants()
When CONSTANT_VALUE mutation is included as a mutation operation, new Constant objects may be created. |
void |
setEliteSize(int eliteSize)
Sets the size of the elite. |
void |
setInitialisationParameters(int initialSelectionPressure)
|
void |
setMutationAndReproductionProportions(double mutProportion,
double repProportion)
Sets the probabilies of using reproduction (cloning) and mutation operators during evolution. |
void |
setMutationAndReproductionProportions(double mutProportion,
double repProportion,
boolean allowCombinedOp)
Sets the probabilies of using reproduction (cloning) and mutation operators during evolution. |
void |
setMutationProportion(double proportion)
Sets the probability of mutation occurring. |
void |
setMutationProportion(double proportion,
boolean allowCombinedOp)
Sets the probability of mutation occurring. |
void |
setReproductionProportion(double proportion)
Sets the probability of reproduction (cloning) occurring. |
void |
setReproductionProportion(double proportion,
boolean allowCombinedOp)
Sets the probability of reproduction (cloning) occurring. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PopulationDescriptor(PopulationDescriptor.PopulationGrowMethod growMethod, int minTreeDepth, int maxTreeDepth, Function[] functions, Input[] inputs, Constant[] constants) throws InvalidRangeException
InvalidRangeException
public PopulationDescriptor(PopulationDescriptor.PopulationGrowMethod growMethod, int minTreeDepth, int maxTreeDepth, Function[] functions, Input[] inputs, Constant[] constants, double growFunctionProportion) throws InvalidRangeException
InvalidRangeException
Method Detail |
---|
public void setInitialisationParameters(int initialSelectionPressure)
public int getInitialSelectionPressure()
public PopulationDescriptor.PopulationGrowMethod getGrowMethod()
public int getMinTreeDepth()
public int getMaxTreeDepth()
public Function[] getFunctions()
public Input[] getInputs()
public Constant[] getConstants()
public double getGrowFunctionProportion()
public void setMutationAndReproductionProportions(double mutProportion, double repProportion) throws IllegalMutationReproductionRatesException
IllegalMutationReproductionRatesException
public void setMutationAndReproductionProportions(double mutProportion, double repProportion, boolean allowCombinedOp) throws IllegalMutationReproductionRatesException
IllegalMutationReproductionRatesException
public void setMutationProportion(double proportion) throws IllegalMutationReproductionRatesException
IllegalMutationReproductionRatesException
public void setMutationProportion(double proportion, boolean allowCombinedOp) throws IllegalMutationReproductionRatesException
IllegalMutationReproductionRatesException
public void setReproductionProportion(double proportion) throws IllegalMutationReproductionRatesException
IllegalMutationReproductionRatesException
public void setReproductionProportion(double proportion, boolean allowCombinedOp) throws IllegalMutationReproductionRatesException
IllegalMutationReproductionRatesException
public double getMutationProportion()
public double getReproductionProportion()
public int getEliteSize()
public void setEliteSize(int eliteSize)
public void addMutatedConstant(double value)
public java.util.Vector<java.lang.Double> getMutatedConstants()
public void resetMutatedConstants()
public boolean getAllowCombinedOp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |