org.jgap.audit
Class PermutingConfiguration
- java.lang.Object
-
- org.jgap.Configuration
-
- org.jgap.audit.PermutingConfiguration
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, Configurable, ICloneable
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jgap.Configuration
Configuration.ConfigurationConfigurable
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor and Description PermutingConfiguration()PermutingConfiguration(Configuration a_conf)Initializes the configuration by preselecting important parameters from the input configuration object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddFitnessFunctionSlot(FitnessFunction a_fitnessFunction)voidaddGeneticOperator(GeneticOperator a_geneticOp)Adds a genetic operator for use in this algorithm.voidaddGeneticOperatorSlot(GeneticOperator a_geneticOperator)voidaddNaturalSelector(NaturalSelector a_naturalSel, boolean a_egal)Adds a NaturalSelector to the ordered chain of registered NaturalSelector's.voidaddNaturalSelectorSlot(NaturalSelector a_naturalSelector)voidaddRandomGeneratorSlot(RandomGenerator a_randomGenerator)booleanhasNext()voidinit()Configurationnext()-
Methods inherited from class org.jgap.Configuration
clone, compareTo, equals, getBreeder, getBulkFitnessFunction, getChromosomePool, getChromosomeSize, getConfigurationHandler, getEventManager, getFitnessEvaluator, getFitnessFunction, getGenerationNr, getGeneticOperators, getId, getJGAPFactory, getMinimumPopSizePercent, getMonitor, getName, getNaturalSelector, getNaturalSelector, getNaturalSelectors, getNaturalSelectorsSize, getPopulationSize, getRandomGenerator, getSampleChromosome, getSelectFromPrevGen, incrementGenerationNr, isAlwaysCalculateFitness, isKeepPopulationSizeConstant, isLocked, isPreserveFittestIndividual, isUniqueKeysActive, lockSettings, newInstance, removeNaturalSelectors, reset, reset, resetProperty, resetProperty, setAlwaysCaculateFitness, setBreeder, setBulkFitnessFunction, setChromosomePool, setEventManager, setFitnessEvaluator, setFitnessFunction, setJGAPFactory, setKeepPopulationSizeConstant, setMinimumPopSizePercent, setMonitor, setName, setNaturalSelector, setPopulationSize, setPreservFittestIndividual, setRandomGenerator, setSampleChromosome, setSelectFromPrevGen, setUniqueKeysActive, toString, verifyStateIsValid
-
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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:ConfigurationAdds 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. Normally, you would add a selector that is applied after the genetic operators are processed (a_processBeforeGeneticOperators = false).- Overrides:
addNaturalSelectorin classConfiguration- 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:ConfigurationAdds 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:
addGeneticOperatorin classConfiguration- 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()
-
-
DMelt 3.0 © DataMelt by jWork.ORG