public class BitVectorSpecies extends VectorSpecies
BitVectorSpecies can specify some parameters globally, per-segment, and per-gene. See VectorSpecies for information on how to this works.
BitVectorSpecies provides support for two ways of mutating a gene.
BitVectorSpecies provides support for two ways of initializing a gene. The initialization procedure is determined by the choice of mutation procedure as described above. If the mutation is floating-point (reset, gauss, polynomial), then initialization will be done by resetting the gene to uniformly chosen double floating-point value between the minimum and maximum legal gene values, inclusive. If the mutation is integer (integer-reset, integer-random-walk), then initialization will be done by performing the same kind of reset, but restricting values to integers only.
Parameters
| base.mutation-type or | |
| base.segment.segment-number.mutation-type or | |
| base.mutation-prob.gene-number reset, flip, (default=flip) |
(the mutation type) |
| Modifier and Type | Field and Description |
|---|---|
static int |
C_FLIP_MUTATION |
static int |
C_RESET_MUTATION |
protected int[] |
mutationType
Mutation type, per gene.
|
static String |
P_MUTATIONTYPE |
static String |
V_FLIP_MUTATION |
static String |
V_RESET_MUTATION |
C_ANY_POINT, C_GEOMETRIC, C_INTERMED_RECOMB, C_LINE_RECOMB, C_NONE, C_ONE_POINT, C_ONE_POINT_NO_NOP, C_SIMULATED_BINARY, C_TWO_POINT, C_TWO_POINT_NO_NOP, C_UNIFORM, chunksize, crossoverDistributionIndex, crossoverProbability, crossoverType, duplicateRetries, dynamicInitialSize, genomeIncreaseProbability, genomeResizeAlgorithm, genomeSize, lineDistance, maxInitialSize, minInitialSize, mutationProbability, P_CHUNKSIZE, P_CROSSOVER_DISTRIBUTION_INDEX, P_CROSSOVERPROB, P_CROSSOVERTYPE, P_DUPLICATE_RETRIES, P_GENOMESIZE, P_GEOMETRIC_PROBABILITY, P_LINEDISTANCE, P_MUTATIONPROB, P_NUM_SEGMENTS, P_SEGMENT, P_SEGMENT_END, P_SEGMENT_START, P_SEGMENT_TYPE, P_UNIFORM_MAX, P_UNIFORM_MIN, P_VECTORSPECIES, V_ANY_POINT, V_GEOMETRIC, V_INTERMED_RECOMB, V_LINE_RECOMB, V_ONE_POINT, V_ONE_POINT_NO_NOP, V_SIMULATED_BINARY, V_TWO_POINT, V_TWO_POINT_NO_NOP, V_UNIFORMf_prototype, i_prototype, P_FITNESS, P_INDIVIDUAL, P_PIPE, pipe_prototype| Constructor and Description |
|---|
BitVectorSpecies() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
loadParametersForGene(EvolutionState state,
int index,
Parameter base,
Parameter def,
String postfix)
Called when VectorSpecies is setting up per-gene and per-segment parameters.
|
int |
mutationType(int gene) |
void |
setup(EvolutionState state,
Parameter base)
The default version of setup(...) loads requested pipelines and calls setup(...) on them and normalizes their probabilities.
|
contains, contains, contains, contains, defaultBase, duplicateRetries, fill, fill, fill, fill, initializeGenomeSegmentsByEndIndices, initializeGenomeSegmentsByStartIndices, mutationProbability, newIndividual, setupGenomeclone, newIndividual, newIndividualpublic static final String P_MUTATIONTYPE
public static final String V_RESET_MUTATION
public static final String V_FLIP_MUTATION
public static final int C_RESET_MUTATION
public static final int C_FLIP_MUTATION
protected int[] mutationType
public int mutationType(int gene)
public void setup(EvolutionState state, Parameter base)
Speciessetup in interface Prototypesetup in interface Setupsetup in class VectorSpeciesPrototype.setup(EvolutionState,Parameter)protected void loadParametersForGene(EvolutionState state, int index, Parameter base, Parameter def, String postfix)
If you override this method, be sure to call super(...) at some point, ideally first.
loadParametersForGene in class VectorSpeciesCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.