org.jgap.audit
Class PermutingConfiguration
java.lang.Object
org.jgap.Configuration
org.jgap.audit.PermutingConfiguration
- All Implemented Interfaces:
- java.io.Serializable, Configurable
public class PermutingConfiguration
- extends Configuration
Configuration that allows for permutating several components of it for
evaluation/auditing purposes.
- Since:
- 2.2
- See Also:
- Serialized Form
| Fields inherited from class org.jgap.Configuration |
PROPERTY_BFITFNC_INST, PROPERTY_EVENT_MGR_INST, PROPERTY_FITEVAL_INST, PROPERTY_FITFUNC_INST, PROPERTY_JGAPFACTORY_CLASS, PROPERTY_SAMPLE_CHROM_INST, S_CHROMOSOME_SIZE, S_CONFIGURATION, S_CONFIGURATION_HANDLER, S_CONFIGURATION_NAME, S_EVENT_MANAGER, S_FITNESS_EVALUATOR, S_FITNESS_FUNCTION, S_GENETIC_OPERATORS, S_MINPOPSIZE, S_NATURAL_SELECTORS, S_NONE, S_POPULATION_SIZE, S_POST, S_PRE, S_RANDOM_GENERATOR, S_SAMPLE_CHROM, S_SIZE, S_TOSTRING |
| Methods inherited from class org.jgap.Configuration |
checkProperty, getBulkFitnessFunction, getChromosomePool, getChromosomeSize, getConfigurationHandler, getEventManager, getFitnessEvaluator, getFitnessFunction, getGenerationNr, getGeneticOperators, getJGAPFactory, getMinimumPopSizePercent, getName, getNaturalSelector, getNaturalSelector, getNaturalSelectors, getNaturalSelectorsSize, getPopulationSize, getRandomGenerator, getSampleChromosome, getThreadKey, incrementGenerationNr, isKeepPopulationSizeConstant, isLocked, isPreserveFittestIndividual, lockSettings, makeKey, removeNaturalSelectors, reset, reset, resetProperty, resetProperty, setBulkFitnessFunction, setChromosomePool, setEventManager, setFitnessEvaluator, setFitnessFunction, setJGAPFactory, setKeepPopulationSizeConstant, setMinimumPopSizePercent, setName, setNaturalSelector, setPopulationSize, setPreservFittestIndividual, setRandomGenerator, setSampleChromosome, toString, verifyChangesAllowed, verifyStateIsValid |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PermutingConfiguration
public PermutingConfiguration()
PermutingConfiguration
public PermutingConfiguration(Configuration a_conf)
throws InvalidConfigurationException
- Initializes the configuration by preselecting important parameters from
the input configuration object
- Parameters:
a_conf - Configuration
- Throws:
InvalidConfigurationException- Since:
- 2.2
init
public void init()
addRandomGeneratorSlot
public void addRandomGeneratorSlot(RandomGenerator a_randomGenerator)
addNaturalSelector
public void addNaturalSelector(NaturalSelector a_naturalSel,
boolean a_egal)
- Description copied from class:
Configuration
- Adds a NaturalSelector to the ordered chain of registered
NaturalSelector's. It's possible to execute the NaturalSelector before
or after (registered) genetic operations have been applied.
- Overrides:
addNaturalSelector in class Configuration
- Parameters:
a_naturalSel - the selector to be added to the chaina_egal - true: execute NaturalSelector
before any genetic operator will be applied, false: .. after..
addNaturalSelectorSlot
public void addNaturalSelectorSlot(NaturalSelector a_naturalSelector)
addGeneticOperator
public void addGeneticOperator(GeneticOperator a_geneticOp)
- Description copied from class:
Configuration
- Adds a genetic operator for use in this algorithm. Genetic operators
represent evolutionary steps that, when combined, make up the
evolutionary process. Examples of genetic operators are reproduction,
crossover, and mutation. During the evolution process, all of the
genetic operators added via this method are invoked in the order
they were added. At least one genetic operator must be provided.
- Overrides:
addGeneticOperator in class Configuration
- Parameters:
a_geneticOp - The genetic operator to add.
addGeneticOperatorSlot
public void addGeneticOperatorSlot(GeneticOperator a_geneticOperator)
addFitnessFunctionSlot
public void addFitnessFunctionSlot(FitnessFunction a_fitnessFunction)
next
public Configuration next()
throws InvalidConfigurationException
- Throws:
InvalidConfigurationException
hasNext
public boolean hasNext()