org.jgap.gp
Interface IGPInitStrategy
-
- All Superinterfaces:
- java.io.Serializable
public interface IGPInitStrategy extends java.io.SerializableOptional initializer for creating GP programs. Set it via GPConfiguration.setInitStrategy.- Since:
- 3.2.1
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCVS_REVISIONString containing the CVS revision.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description CommandGeneinit(IGPChromosome a_chrom, int a_chromNum)Initializes a chromosome within a GP program before a random creation of the (rest of the) program is executed.
-
-
-
Field Detail
-
CVS_REVISION
static final java.lang.String CVS_REVISION
String containing the CVS revision. Read out via reflection!- See Also:
- Constant Field Values
-
-
Method Detail
-
init
CommandGene init(IGPChromosome a_chrom, int a_chromNum) throws java.lang.Exception
Initializes a chromosome within a GP program before a random creation of the (rest of the) program is executed.- Parameters:
a_chrom- the chromosome within the GP program to create randomlya_chromNum- index of the chromosome with the GP program- Returns:
- the CommandGene to use as first node, or null if random selection
- Throws:
java.lang.Exception- Since:
- 3.2.1
-
-
DMelt 3.0 © DataMelt by jWork.ORG