JGAP

Serialized Form


Package examples

Class examples.MinimizingMakeChangeFitnessFunction extends FitnessFunction implements Serializable

Serialized Fields

m_targetAmount

int m_targetAmount

Package examples.audit

Class examples.audit.CoinsExampleFitnessFunction extends FitnessFunction implements Serializable

Serialized Fields

m_targetAmount

int m_targetAmount

Package examples.chromInit

Class examples.chromInit.MaxFunction extends FitnessFunction implements Serializable


Package examples.config

Class examples.config.MaximizingFunctionFitnessFunction extends FitnessFunction implements Serializable


Package examples.distinctGenes

Class examples.distinctGenes.MyChromosome extends Chromosome implements Serializable

Class examples.distinctGenes.SampleFitnessFunction extends FitnessFunction implements Serializable


Package examples.dynamicMutation

Class examples.dynamicMutation.DynamicMutationExample.CoinsMutationRateCalc extends java.lang.Object implements Serializable

Serialized Fields

m_evolution

int m_evolution

m_rate0

double m_rate0

m_rate1

double m_rate1

m_rate2

double m_rate2

m_rate3

double m_rate3

Class examples.dynamicMutation.DynamicMutationFitnessFunction extends FitnessFunction implements Serializable

Serialized Fields

m_targetAmount

int m_targetAmount

Package examples.energy

Class examples.energy.CoinsEnergy.EnergyGeneConstraintChecker extends java.lang.Object implements Serializable

Class examples.energy.CoinsEnergyFitnessFunction extends FitnessFunction implements Serializable

Serialized Fields

m_targetAmount

int m_targetAmount

m_maxWeight

double m_maxWeight

Package examples.gp

Class examples.gp.Fibonacci.FormulaFitnessFunction extends GPFitnessFunction implements Serializable

Class examples.gp.MathProblem.FormulaFitnessFunction extends GPFitnessFunction implements Serializable


Package examples.grid

Class examples.grid.SampleFitnessFunction extends FitnessFunction implements Serializable


Package examples.knapsack

Class examples.knapsack.KnapsackFitnessFunction extends FitnessFunction implements Serializable

Serialized Fields

m_knapsackVolume

double m_knapsackVolume

Package examples.multiobjective

Class examples.multiobjective.MOFitnessEvaluator extends java.lang.Object implements Serializable

Class examples.multiobjective.MultiObjectiveFitnessFunction extends BulkFitnessFunction implements Serializable


Package examples.salesman

Class examples.salesman.TravellingSalesman extends Salesman implements Serializable


Package examples.simpleBoolean

Class examples.simpleBoolean.MaxFunction extends FitnessFunction implements Serializable


Package examples.supergene

Class examples.supergene.AbstractChangeFitnessFunction extends FitnessFunction implements Serializable

Serialized Fields

m_targetAmount

int m_targetAmount

Class examples.supergene.NickelsPenniesSupergene extends AbstractSupergene implements Serializable

Class examples.supergene.SupergeneChangeFitnessFunction extends AbstractChangeFitnessFunction implements Serializable


Package org.jgap

Class org.jgap.BaseChromosome extends java.lang.Object implements Serializable

Serialized Fields

m_configuration

Configuration m_configuration
The configuration object to use

Class org.jgap.BaseGene extends java.lang.Object implements Serializable

Serialized Fields

m_energy

double m_energy
Energy of a gene, see RFE 1102206


m_applicationData

java.lang.Object m_applicationData
Application-specific data that is attached to the Gene. This data may assist the application in labelling this Gene. JGAP ignores the data, aside from allowing it to be set and retrieved and considering it in clone() and compareTo().

Since:
2.4

m_compareAppData

boolean m_compareAppData
Method compareTo(): Should we also consider the application data when comparing? Default is "false" as "true" means a Gene's losing its identity when application data is set differently!

Since:
2.4

m_configuration

Configuration m_configuration

m_geneAlleleChecker

IGeneConstraintChecker m_geneAlleleChecker
Optional helper class for checking if a given allele value to be set for a given gene is valid. If not, the allele value may not be set for the gene or the gene type (e.g. IntegerGene) is not allowed in general!

Since:
2.5 (moved from CompositeGene, where it was since 2.0)

Class org.jgap.BaseGeneticOperator extends java.lang.Object implements Serializable

Serialized Fields

m_configuration

Configuration m_configuration

Class org.jgap.BaseRateCalculator extends java.lang.Object implements Serializable

Class org.jgap.BulkFitnessFunction extends java.lang.Object implements Serializable

Class org.jgap.Chromosome extends BaseChromosome implements Serializable

Serialized Fields

m_applicationData

java.lang.Object m_applicationData
Application-specific data that is attached to this Chromosome. This data may assist the application in evaluating this Chromosome in the fitness function. JGAP does not operate on the data, aside from allowing it to be set and retrieved, and considering it with comparations (if user opted in to do so).


m_multiObjective

java.util.List<E> m_multiObjective
Holding multiobjective values

Since:
2.6

m_genes

Gene[] m_genes
The array of Genes contained in this Chromosome.


m_isSelectedForNextGeneration

boolean m_isSelectedForNextGeneration
Keeps track of whether or not this Chromosome has been selected by the natural selector to move on to the next generation.


m_fitnessValue

double m_fitnessValue
Stores the fitness value of this Chromosome as determined by the active fitness function. A value of -1 indicates that this field has not yet been set with this Chromosome's fitness values (valid fitness values are always positive).

Since:
2.0 (until 1.1: type int)

m_compareAppData

boolean m_compareAppData
Method compareTo(): Should we also consider the application data when comparing? Default is "false" as "true" means a Chromosome's losing its identity when application data is set differently!

Since:
2.2

m_geneAlleleChecker

IGeneConstraintChecker m_geneAlleleChecker
Optional helper class for checking if a given allele value to be set for a given gene is valid. If not, the allele value may not be set for the gene or the gene type (e.g. IntegerGene) is not allowed in general!

Since:
2.5

Class org.jgap.Configuration extends java.lang.Object implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream a_inputStream)
                 throws java.lang.ClassNotFoundException,
                        java.io.IOException
Deserialize the object.

Throws:
java.lang.ClassNotFoundException
java.io.IOException
Since:
3.01
Serialized Fields

m_config

org.jgap.Configuration.ConfigurationConfigurable m_config

m_objectiveFunction

FitnessFunction m_objectiveFunction
References the current fitness function that will be used to evaluate chromosomes during the natural selection process. Note that only this or the bulk fitness function may be set - the two are mutually exclusive.

Since:
1.0

m_fitnessEvaluator

FitnessEvaluator m_fitnessEvaluator
The fitness evaluator. See interface class FitnessEvaluator for details

Since:
2.0 (since 1.1 in class Genotype).

m_minPercentageSizePopulation

int m_minPercentageSizePopulation
Minimum size guaranteed for population. If zero or below then no ensurance.


m_bulkObjectiveFunction

BulkFitnessFunction m_bulkObjectiveFunction
References the current bulk fitness function that will be used to evaluate chromosomes (in bulk) during the natural selection process. Note that only this or the normal fitness function may be set - the two are mutually exclusive.

Since:
1.0

m_sampleChromosome

IChromosome m_sampleChromosome
References a Chromosome that serves as a sample of the Gene setup that is to be used. Each gene in the Chromosome should be represented with the desired Gene type.

Since:
1.0

m_randomGenerator

RandomGenerator m_randomGenerator
References the random number generator implementation that is to be used for the generation of any random numbers during the various genetic operations and processes.

Since:
1.0

m_geneticOperators

java.util.List<E> m_geneticOperators
Stores all of the GeneticOperator implementations that are to be used to operate upon the chromosomes of a population prior to natural selection. Operators will be executed in the order that they are added to this list.

Since:
1.1

m_chromosomeSize

int m_chromosomeSize
The number of genes that will be stored in each chromosome in the population.


m_settingsLocked

boolean m_settingsLocked
Indicates whether the settings of this Configuration instance have been locked. Prior to locking, the settings may be set and reset as desired. Once this flag is set to true, no settings may be altered.


m_preSelectors

ChainOfSelectors m_preSelectors
Ordered chain of NaturalSelector's which will be executed before applying Genetic Operators.

Since:
1.1

m_postSelectors

ChainOfSelectors m_postSelectors
Ordered chain of NaturalSelector's which will be executed after applying Genetic Operators.

Since:
1.1

m_sizeNaturalSelectorsPre

int m_sizeNaturalSelectorsPre

m_sizeNaturalSelectorsPost

int m_sizeNaturalSelectorsPost

m_preserveFittestIndividual

boolean m_preserveFittestIndividual
Should the fittest chromosome in the population be preserved to the next generation when evolving (in Genotype.evolve()) ?


m_generationNr

int m_generationNr
Indicates how many times the evolve()-method in class Genotype has been called. Represents the number of the current population.

Since:
2.2

m_name

java.lang.String m_name
Informative name for output.

Since:
2.3

m_keepPopulationSizeConstant

boolean m_keepPopulationSizeConstant
True: population size will be kept constant at specified size in configuration. False: population size will grow dependently on used NaturalSelector's and GeneticOperator's. Default is TRUE

Since:
2.4

m_id

java.lang.String m_id
Unique ID for a configuration to distinguish it from other configurations instantiated within the same thread.

Since:
3.01

Class org.jgap.DefaultFitnessEvaluator extends java.lang.Object implements Serializable

Class org.jgap.DeltaFitnessEvaluator extends java.lang.Object implements Serializable

Class org.jgap.FitnessFunction extends java.lang.Object implements Serializable

Serialized Fields

m_lastComputedFitnessValue

double m_lastComputedFitnessValue
The fitness value computed during the previous run

Class org.jgap.Genotype extends java.lang.Object implements Serializable

Serialized Fields

m_population

Population m_population
The array of Chromosomes that makeup the Genotype's population.

Since:
2.0

Class org.jgap.InvalidConfigurationException extends java.lang.Exception implements Serializable

Class org.jgap.NaturalSelector extends java.lang.Object implements Serializable

Serialized Fields

m_config

Configuration m_config

Class org.jgap.NaturalSelector.FitnessValueComparator extends java.lang.Object implements Serializable

Class org.jgap.Population extends java.lang.Object implements Serializable

Serialized Fields

m_chromosomes

java.util.List<E> m_chromosomes
The array of Chromosomes that makeup the Genotype's population.


m_fittestChromosome

IChromosome m_fittestChromosome
The fittest Chromosome of the population.


m_changed

boolean m_changed
Indicates whether at least one of the chromosomes has been changed (deleted, added, modified).


m_sorted

boolean m_sorted
Indicates that the list of Chromosomes has been sorted.


m_config

Configuration m_config

Class org.jgap.UnsupportedRepresentationException extends java.lang.Exception implements Serializable


Package org.jgap.audit

Class org.jgap.audit.KeyedValue extends java.lang.Object implements Serializable

Serialized Fields

m_key

java.lang.Comparable<T> m_key

m_value

java.lang.Number m_value

Class org.jgap.audit.KeyedValues extends java.lang.Object implements Serializable

Serialized Fields

m_data

java.util.List<E> m_data
Data storage

Class org.jgap.audit.KeyedValues2D extends java.lang.Object implements Serializable

Serialized Fields

m_rowKeys

java.util.List<E> m_rowKeys
The row keys


m_columnKeys

java.util.List<E> m_columnKeys
The column keys


m_rows

java.util.List<E> m_rows
The row data


m_sortRowKeys

boolean m_sortRowKeys
Should row keys be sorted by their comparable order?

Class org.jgap.audit.PermutingConfiguration extends Configuration implements Serializable

Serialized Fields

m_randomGeneratorSlots

java.util.List<E> m_randomGeneratorSlots

m_randomGeneratorIndex

int m_randomGeneratorIndex

m_naturalSelectorSlots

java.util.List<E> m_naturalSelectorSlots

m_naturalSelectorIndex

int m_naturalSelectorIndex

m_geneticOperatorSlots

java.util.List<E> m_geneticOperatorSlots

m_geneticOperatorIndex

int m_geneticOperatorIndex

m_fitnessFunctionSlots

java.util.List<E> m_fitnessFunctionSlots

m_fitnessFunctionIndex

int m_fitnessFunctionIndex

m_componentIndex

int m_componentIndex

m_configuration

Configuration m_configuration
The resulting configuration as determined by permutation.


Package org.jgap.data.config

Class org.jgap.data.config.ConfigException extends java.lang.Exception implements Serializable

Class org.jgap.data.config.MetaConfigException extends java.lang.Exception implements Serializable


Package org.jgap.distr

Class org.jgap.distr.Culture extends java.lang.Object implements Serializable

Serialized Fields

m_memory

CultureMemoryCell[] m_memory
The storage to use.


m_memoryNames

java.util.List<E> m_memoryNames
Storage for named indices.


m_size

int m_size
Number of memory cells available.

Class org.jgap.distr.CultureMemoryCell extends java.lang.Object implements Serializable

Serialized Fields

m_name

java.lang.String m_name
Informative name of the memory cell (optional)


m_version

int m_version
Version of the memory value, i.e. how many times has setValue(..) been called)? First version (no value assigned) is zero, second version (first time a value is assigned to the memory) is 1 etc.


m_value

java.lang.Object m_value
Value of the memory cell


m_readAccessed

int m_readAccessed
How many times has the memory cell been read out?


m_historySize

int m_historySize
How many historical values should be kept for evaluation purposes? Values less than one turn history feature off


m_internalHistorySize

int m_internalHistorySize

m_previousVersion

CultureMemoryCell m_previousVersion
If history logging turned off, we need to keep the prior version for evaluation purpose, e.g. see getReadAccessedCurrentVersion


m_history

java.util.List<E> m_history
History of memory values


m_dateTimeVersion

long m_dateTimeVersion
Time in milliseconds when the version number is incremented (e.g. when setting the value of the cell)

Class org.jgap.distr.DistributedGenotype extends Genotype implements Serializable


Package org.jgap.event

Class org.jgap.event.GeneticEvent extends java.util.EventObject implements Serializable

Serialized Fields

m_value

java.lang.Object m_value
Multi-purpose value object


m_eventName

java.lang.String m_eventName
References the name of this event instance.


Package org.jgap.gp

Class org.jgap.gp.BaseGPChromosome extends java.lang.Object implements Serializable

Serialized Fields

m_configuration

GPConfiguration m_configuration
The configuration object to use


m_ind

IGPProgram m_ind
The individual the chromosome belongs to.

Class org.jgap.gp.CommandGene extends java.lang.Object implements Serializable

Serialized Fields

m_configuration

GPConfiguration m_configuration

m_noValidation

boolean m_noValidation
Should isValid() be called? True = no!


m_returnType

java.lang.Class<T> m_returnType
The return type of this node.


m_arity

int m_arity

m_integerType

boolean m_integerType

m_floatType

boolean m_floatType

m_energy

double m_energy
Energy of a gene, see RFE 1102206


m_applicationData

java.lang.Object m_applicationData
Application-specific data that is attached to the Gene. This data may assist the application in labelling this Gene. JGAP ignores the data, aside from allowing it to be set and retrieved and considering it in clone() and compareTo().

Since:
3.0

m_compareAppData

boolean m_compareAppData
Method compareTo(): Should we also consider the application data when comparing? Default is "false" as "true" means a Gene's losing its identity when application data is set differently!

Since:
3.0

Class org.jgap.gp.CrossMethod extends java.lang.Object implements Serializable

Class org.jgap.gp.GPFitnessFunction extends java.lang.Object implements Serializable

Serialized Fields

m_lastComputedFitnessValue

double m_lastComputedFitnessValue
The fitness value computed during the previous run

Class org.jgap.gp.GPProgramBase extends java.lang.Object implements Serializable

Serialized Fields

m_fitnessValue

double m_fitnessValue

m_conf

GPConfiguration m_conf

m_types

java.lang.Class<T>[] m_types
Return type per chromosome.


m_argTypes

java.lang.Class<T>[][] m_argTypes
Argument types for ADF's


m_nodeSets

CommandGene[][] m_nodeSets
Available GP-functions.


m_minDepths

int[] m_minDepths
Minimum depth per each chromosome


m_maxDepths

int[] m_maxDepths
Maximum depth per each chromosome


m_maxNodes

int m_maxNodes
Maximum number of nodes allowed per chromosome (when exceeded program aborts)


m_applicationData

java.lang.Object m_applicationData
Free to use data object.

Class org.jgap.gp.MathCommand extends CommandGene implements Serializable


Package org.jgap.gp.function

Class org.jgap.gp.function.Add extends MathCommand implements Serializable

Class org.jgap.gp.function.Add3 extends MathCommand implements Serializable

Class org.jgap.gp.function.AddAndStore extends MathCommand implements Serializable

Serialized Fields

m_storageName

java.lang.String m_storageName
Symbolic name of the storage. Must correspond with a chosen name for ReadTerminalCommand.


m_type

java.lang.Class<T> m_type

Class org.jgap.gp.function.ADF extends CommandGene implements Serializable

Serialized Fields

m_chromosomeNum

int m_chromosomeNum

Class org.jgap.gp.function.And extends MathCommand implements Serializable

Class org.jgap.gp.function.Cosine extends MathCommand implements Serializable

Class org.jgap.gp.function.Divide extends MathCommand implements Serializable

Class org.jgap.gp.function.Equals extends MathCommand implements Serializable

Serialized Fields

m_type

java.lang.Class<T> m_type

Class org.jgap.gp.function.Exp extends MathCommand implements Serializable

Class org.jgap.gp.function.ForLoop extends CommandGene implements Serializable

Serialized Fields

m_typeVar

java.lang.Class<T> m_typeVar

m_startIndex

int m_startIndex

m_maxLoop

int m_maxLoop

Class org.jgap.gp.function.ForXLoop extends CommandGene implements Serializable

Serialized Fields

m_type

java.lang.Class<T> m_type

Class org.jgap.gp.function.If extends CommandGene implements Serializable

Class org.jgap.gp.function.IfElse extends CommandGene implements Serializable

Class org.jgap.gp.function.Increment extends MathCommand implements Serializable

Serialized Fields

m_increment

int m_increment

Class org.jgap.gp.function.Loop extends CommandGene implements Serializable

Serialized Fields

m_typeVar

java.lang.Class<T> m_typeVar

m_count

int m_count

Class org.jgap.gp.function.Modulo extends MathCommand implements Serializable

Class org.jgap.gp.function.Multiply extends MathCommand implements Serializable

Class org.jgap.gp.function.Multiply3 extends MathCommand implements Serializable

Class org.jgap.gp.function.Not extends MathCommand implements Serializable

Class org.jgap.gp.function.Or extends MathCommand implements Serializable

Class org.jgap.gp.function.Pop extends MathCommand implements Serializable

Class org.jgap.gp.function.Pow extends MathCommand implements Serializable

Class org.jgap.gp.function.Push extends CommandGene implements Serializable

Serialized Fields

m_type

java.lang.Class<T> m_type

Class org.jgap.gp.function.ReadTerminal extends CommandGene implements Serializable

Serialized Fields

m_storageName

java.lang.String m_storageName
Symbolic name of the storage. Must correspond with a chosen name for an other command working with memory (otherwise it would make no sense).

Class org.jgap.gp.function.Sine extends MathCommand implements Serializable

Class org.jgap.gp.function.StoreTerminal extends CommandGene implements Serializable

Serialized Fields

m_storageName

java.lang.String m_storageName
Symbolic name of the storage. Must correspond with a chosen name for ReadTerminalCommand.


m_type

java.lang.Class<T> m_type

Class org.jgap.gp.function.SubProgram extends CommandGene implements Serializable

Serialized Fields

m_subtrees

int m_subtrees
Number of subprograms. Redundant, because equal to m_types.length.


m_types

java.lang.Class<T>[] m_types
Return types of the subprograms to excecute.

Class org.jgap.gp.function.Subtract extends MathCommand implements Serializable

Class org.jgap.gp.function.TransferMemory extends CommandGene implements Serializable

Serialized Fields

m_sourceStorageName

java.lang.String m_sourceStorageName
Symbolic name of the storage. Must correspond with a chosen name for ReadTerminalCommand.


m_targetStorageName

java.lang.String m_targetStorageName

Class org.jgap.gp.function.Xor extends MathCommand implements Serializable


Package org.jgap.gp.impl

Class org.jgap.gp.impl.BranchTypingCross extends CrossMethod implements Serializable

Class org.jgap.gp.impl.DefaultGPFitnessEvaluator extends java.lang.Object implements Serializable

Class org.jgap.gp.impl.FitnessProportionateSelection extends java.lang.Object implements Serializable

Class org.jgap.gp.impl.GPConfiguration extends Configuration implements Serializable

Serialized Fields

m_objectiveFunction

GPFitnessFunction m_objectiveFunction
References the current fitness function that will be used to evaluate chromosomes during the natural selection process.


m_stack

java.util.Stack<E> m_stack
Internal stack, see PushCommand for example.


m_memory

Culture m_memory
Internal memory, see StoreTerminalCommand for example.


m_crossoverProb

double m_crossoverProb
The probability that a crossover operation is chosen during evolution. Must be between 0.0d and 1.0d, inclusive.


m_reproductionProb

double m_reproductionProb
The probability that a reproduction operation is chosen during evolution. Must be between 0.0d and 1.0d. crossoverProb + reproductionProb must equal 1.0d.


m_newChromsPercent

double m_newChromsPercent
Percentage of the population that will be filled with new individuals during evolution. Must be between 0.0d and 1.0d.


m_maxCrossoverDepth

int m_maxCrossoverDepth
The maximum depth of an individual resulting from crossover.


m_maxInitDepth

int m_maxInitDepth
The maximum depth of an individual when the world is created.


m_selectionMethod

INaturalGPSelector m_selectionMethod
The method of choosing an individual to perform an evolution operation on.


m_crossMethod

CrossMethod m_crossMethod
The method of crossing over two individuals during evolution.


m_strictProgramCreation

boolean m_strictProgramCreation
True: Set of available functions must contain any "type of function" that may be needed during construction of a new program. A "type of function" is, for instance, a terminal with return type CommandGene.IntegerClass.


m_programCreationMaxTries

int m_programCreationMaxTries
If m_strictProgramCreation is false: Maximum number of tries to construct a valid program.


m_fitnessEvaluator

IGPFitnessEvaluator m_fitnessEvaluator
The fitness evaluator. See interface IGPFitnessEvaluator for details.


m_nodeValidator

INodeValidator m_nodeValidator

Class org.jgap.gp.impl.GPGenotype extends java.lang.Object implements Serializable

Serialized Fields

m_population

GPPopulation m_population
The array of GPProgram's that makeup the GPGenotype's population.


m_fullModeAllowed

boolean[] m_fullModeAllowed
Is full mode with program construction allowed?


m_types

java.lang.Class<T>[] m_types
Return type per chromosome.


m_argTypes

java.lang.Class<T>[][] m_argTypes
Argument types for ADF's


m_nodeSets

CommandGene[][] m_nodeSets
Available GP-functions.


m_minDepths

int[] m_minDepths
Minimum depth per each chromosome


m_maxDepths

int[] m_maxDepths
Maximum depth per each chromosome


m_maxNodes

int m_maxNodes
Maximum number of nodes allowed per chromosome (when exceeded program aborts)


m_verbose

boolean m_verbose
True: Output status information to console

Class org.jgap.gp.impl.GPPopulation extends java.lang.Object implements Serializable

Serialized Fields

m_programs

IGPProgram[] m_programs
The array of GPProgram's that makeup the Genotype's population.


m_popSize

int m_popSize

m_config

GPConfiguration m_config

m_changed

boolean m_changed
Indicates whether at least one of the programs has been changed (deleted, added, modified).


m_sorted

boolean m_sorted
Indicates that the list of GPPrograms has been sorted.

Class org.jgap.gp.impl.GPProgram extends GPProgramBase implements Serializable

Serialized Fields

m_chromosomes

ProgramChromosome[] m_chromosomes
Holds the chromosomes contained in this program.

Class org.jgap.gp.impl.ProgramChromosome extends BaseGPChromosome implements Serializable

Serialized Fields

m_depth

int[] m_depth
Array to hold the depths of each node.


argTypes

java.lang.Class<T>[] argTypes
Array to hold the types of the arguments to this Chromosome.


m_genes

CommandGene[] m_genes
The array of genes contained in this chromosome.


m_applicationData

java.lang.Object m_applicationData
Application-specific data that is attached to this Chromosome. This data may assist the application in evaluating this Chromosome in the fitness function. JGAP does not operate on the data, aside from allowing it to be set and retrieved, and considering it with comparations (if user opted in to do so).


m_compareAppData

boolean m_compareAppData
Method compareTo(): Should we also consider the application data when comparing? Default is "false" as "true" means a Chromosome's losing its identity when application data is set differently!

Since:
3.0

Package org.jgap.gp.terminal

Class org.jgap.gp.terminal.Argument extends CommandGene implements Serializable

Serialized Fields

m_index

int m_index

Class org.jgap.gp.terminal.Constant extends MathCommand implements Serializable

Serialized Fields

m_value

java.lang.Object m_value

Class org.jgap.gp.terminal.False extends MathCommand implements Serializable

Class org.jgap.gp.terminal.NOP extends MathCommand implements Serializable

Class org.jgap.gp.terminal.Terminal extends CommandGene implements Serializable

Serialized Fields

m_value_float

float m_value_float

m_value_double

double m_value_double

m_value_int

int m_value_int

m_value_long

long m_value_long

m_lowerBounds

double m_lowerBounds

m_upperBounds

double m_upperBounds

Class org.jgap.gp.terminal.True extends MathCommand implements Serializable

Class org.jgap.gp.terminal.Variable extends CommandGene implements Serializable

Serialized Fields

m_name

java.lang.String m_name
Unique name of the variable.


m_value

java.lang.Object m_value

Package org.jgap.gui

Class org.jgap.gui.ConfigFrame extends javax.swing.JFrame implements Serializable

Serialized Fields

m_conHandler

java.lang.Object m_conHandler

m_isRoot

boolean m_isRoot

m_panels

java.util.List<E> m_panels

m_listProps

java.util.List<E> m_listProps

m_textProps

java.util.List<E> m_textProps

m_listGroups

java.util.List<E> m_listGroups

m_textGroups

java.util.List<E> m_textGroups

m_listPanel

javax.swing.JPanel m_listPanel

m_textPanel

javax.swing.JPanel m_textPanel

m_configPanel

javax.swing.JPanel m_configPanel

m_configButton

javax.swing.JButton m_configButton

m_cbl

org.jgap.gui.ConfigFrame.ConfigButtonListener m_cbl

m_fileName

javax.swing.JTextField m_fileName

m_configureButton

javax.swing.JButton m_configureButton

m_configItem

javax.swing.JTextField m_configItem

m_conObj

Configurable m_conObj

m_parent

ConfigFrame m_parent

Package org.jgap.impl

Class org.jgap.impl.AveragingCrossoverOperator extends BaseGeneticOperator implements Serializable

Serialized Fields

m_crossoverGenerator

RandomGenerator m_crossoverGenerator
Random generator for randomizing the loci for crossing over


m_crossoverRate

int m_crossoverRate
The current crossover rate used by this crossover operator.


m_loci

java.util.Map<K,V> m_loci
Cache for alreadycrandomized loci for crossing over


m_crossoverRateCalc

IUniversalRateCalculator m_crossoverRateCalc
Calculator for dynamically determining the crossover rate. If set to null the value of m_crossoverRate will be used instead.

Class org.jgap.impl.BestChromosomesSelector extends NaturalSelector implements Serializable

Serialized Fields

m_chromosomes

Population m_chromosomes
Stores the chromosomes to be taken into account for selection


m_doublettesAllowed

boolean m_doublettesAllowed
Allows or disallows doublette chromosomes to be added to the selector


m_needsSorting

boolean m_needsSorting
Indicated whether the list of added chromosomes needs sorting


m_fitnessValueComparator

NaturalSelector.FitnessValueComparator m_fitnessValueComparator
Comparator that is only concerned about fitness values


m_config

org.jgap.impl.BestChromosomesSelector.BestChromosomesSelectorConfig m_config

Class org.jgap.impl.BooleanGene extends BaseGene implements Serializable

Serialized Fields

m_value

java.lang.Boolean m_value
References the internal boolean value of this Gene.

Class org.jgap.impl.BulkFitnessOffsetRemover extends BulkFitnessFunction implements Serializable

Serialized Fields

m_ff

FitnessFunction m_ff

m_previousOffset

double m_previousOffset

The last generations offset. This has to be stored because Chromosomes that were put into the new generation's candidate list already have the fitness value without offset from their previous evaluation.

We try to avoid evaluations of the fitness function as it might be expensive, so we reuse fitness values. If a Chromosome already has a fitness value >0 this previousOffset is added to it's fitness to allow comparing this Chromosome's fitness with newly evaluated Chromosomes (which still have the offset from the evaluation).

Class org.jgap.impl.CauchyRandomGenerator extends java.lang.Object implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream a_inputStream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
When deserializing, initialize the seed because otherwise we could get duplicate evolution results when doing distributed computing!

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Since:
3.01
Serialized Fields

m_scale

double m_scale

m_location

double m_location

m_rn

java.util.Random m_rn

Class org.jgap.impl.ChainOfSelectors extends java.lang.Object implements Serializable

Serialized Fields

m_selectors

java.util.List<E> m_selectors
Ordered list holding the NaturalSelector's. Intentionally used as a decorator and not via inheritance!

Class org.jgap.impl.CompositeGene extends BaseGene implements Serializable

Serialized Fields

m_geneTypeAllowed

Gene m_geneTypeAllowed

m_genes

java.util.List<E> m_genes
The genes contained in this CompositeGene

Since:
1.1

Class org.jgap.impl.CrossoverOperator extends BaseGeneticOperator implements Serializable

Serialized Fields

m_crossoverRate

int m_crossoverRate
The current crossover rate used by this crossover operator.


m_crossoverRateCalc

IUniversalRateCalculator m_crossoverRateCalc
Calculator for dynamically determining the crossover rate. If set to null the value of m_crossoverRate will be used instead.

Class org.jgap.impl.DefaultConfiguration extends Configuration implements Serializable

Class org.jgap.impl.DefaultCrossoverRateCalculator extends BaseRateCalculator implements Serializable

Class org.jgap.impl.DefaultMutationRateCalculator extends BaseRateCalculator implements Serializable

Class org.jgap.impl.DoubleGene extends NumberGene implements Serializable

Serialized Fields

m_upperBound

double m_upperBound
The upper bounds of values represented by this Gene. If not explicitly provided by the user, this should be set to Double.MAX_VALUE.


m_lowerBound

double m_lowerBound
The lower bounds of values represented by this Gene. If not explicitly provided by the user, this should be set to Double.MIN_VALUE

Class org.jgap.impl.FixedBinaryGene extends BaseGene implements Serializable

Serialized Fields

m_length

int m_length

m_value

int[] m_value

Class org.jgap.impl.GaussianMutationOperator extends BaseGeneticOperator implements Serializable

Serialized Fields

m_deviation

double m_deviation

m_rg

RandomGenerator m_rg

Class org.jgap.impl.GaussianRandomGenerator extends java.lang.Object implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream a_inputStream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
When deserializing, initialize the seed because otherwise we could get duplicate evolution results when doing distributed computing!

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Since:
3.01
Serialized Fields

m_rn

java.util.Random m_rn

m_standardDeviation

double m_standardDeviation
Standard deviation of the gaussian deviation

Class org.jgap.impl.GreedyCrossover extends BaseGeneticOperator implements Serializable

Serialized Fields

ASSERTIONS

boolean ASSERTIONS
Switches assertions on/off. Must be true during tests and debugging.


m_startOffset

int m_startOffset

Class org.jgap.impl.IntegerGene extends NumberGene implements Serializable

Serialized Fields

m_upperBounds

int m_upperBounds
The upper bounds of values represented by this Gene. If not explicitly provided by the user, this should be set to Integer.MAX_VALUE.


m_lowerBounds

int m_lowerBounds
The lower bounds of values represented by this Gene. If not explicitly provided by the user, this should be set to Integer.MIN_VALUE

Class org.jgap.impl.InversionOperator extends BaseGeneticOperator implements Serializable

Class org.jgap.impl.MapGene extends BaseGene implements Serializable

Serialized Fields

m_geneMap

java.util.Map<K,V> m_geneMap
Container for valid alleles


m_value

java.lang.Object m_value
Represents the constant range of values supported by integers.

Class org.jgap.impl.MutationOperator extends BaseGeneticOperator implements Serializable

Serialized Fields

m_mutationRateCalc

IUniversalRateCalculator m_mutationRateCalc
Calculator for dynamically determining the mutation rate. If set to null the value of m_mutationRate will be used. Replaces the previously used boolean m_dynamicMutationRate.


m_config

org.jgap.impl.MutationOperator.MutationOperatorConfigurable m_config

Class org.jgap.impl.NumberGene extends BaseGene implements Serializable

Serialized Fields

m_value

java.lang.Object m_value
References the internal value (allele) of this Gene E.g., for DoubleGene this is of type Double

Class org.jgap.impl.SetGene extends BaseGene implements Serializable

Serialized Fields

m_geneSet

java.util.HashSet<E> m_geneSet

m_value

java.lang.Object m_value

Class org.jgap.impl.StockRandomGenerator extends java.util.Random implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream a_inputStream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
When deserializing, initialize the seed because otherwise we could get duplicate evolution results when doing distributed computing!

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Since:
3.01

Class org.jgap.impl.StringGene extends BaseGene implements Serializable

Serialized Fields

m_minLength

int m_minLength

m_maxLength

int m_maxLength

m_alphabet

java.lang.String m_alphabet

m_value

java.lang.String m_value
References the internal String value (allele) of this Gene.

Class org.jgap.impl.SwappingMutationOperator extends MutationOperator implements Serializable

Serialized Fields

m_startOffset

int m_startOffset

Class org.jgap.impl.ThresholdSelector extends NaturalSelector implements Serializable

Serialized Fields

m_chromosomes

java.util.List<E> m_chromosomes
Stores the chromosomes to be taken into account for selection


m_needsSorting

boolean m_needsSorting
Indicated whether the list of added chromosomes needs sorting


m_fitnessValueComparator

org.jgap.impl.ThresholdSelector.FitnessValueComparator m_fitnessValueComparator
Comparator that is only concerned about fitness values


m_config

org.jgap.impl.ThresholdSelector.ThresholdSelectorConfigurable m_config

Class org.jgap.impl.TournamentSelector extends NaturalSelector implements Serializable

Serialized Fields

m_config

org.jgap.impl.TournamentSelector.TournamentSelectorConfigurable m_config

m_chromosomes

java.util.List<E> m_chromosomes

m_fitnessValueComparator

org.jgap.impl.TournamentSelector.FitnessValueComparator m_fitnessValueComparator
Comparator that is only concerned about fitness values

Class org.jgap.impl.TwoWayMutationOperator extends BaseGeneticOperator implements Serializable

Serialized Fields

m_mutationRate

int m_mutationRate
The current mutation rate used by this MutationOperator, expressed as the denominator in the 1 / X ratio. For example, X = 1000 would mean that, on average, 1 / 1000 genes would be mutated. A value of zero disables mutation entirely.


m_mutationRateCalc

IUniversalRateCalculator m_mutationRateCalc
Calculator for dynamically determining the mutation rate. If set to null the value of m_mutationRate will be used. Replaces the previously used boolean m_dynamicMutationRate.

Class org.jgap.impl.WeightedRouletteSelector extends NaturalSelector implements Serializable

Serialized Fields

m_wheel

java.util.Map<K,V> m_wheel
Represents the "roulette wheel." Each key in the Map is a Chromosome and each value is an instance of the SlotCounter inner class, which keeps track of how many slots on the wheel each Chromosome is occupying.


m_totalNumberOfUsedSlots

double m_totalNumberOfUsedSlots
Keeps track of the total number of slots that are in use on the roulette wheel. This is equal to the combined fitness values of all Chromosome instances that have been added to this wheel.


m_counterPool

Pool m_counterPool
An internal pool in which discarded SlotCounter instances can be stored so that they can be reused over and over again, thus saving memory and the overhead of constructing new ones each time.


m_config

org.jgap.impl.WeightedRouletteSelector.WeightedRouletteSelConfig m_config

Package org.jgap.impl.fitness

Class org.jgap.impl.fitness.TruthTableFitnessFunction extends FitnessFunction implements Serializable

Serialized Fields

m_truthTable

java.util.Map<K,V> m_truthTable

m_conf

Configuration m_conf

Package org.jgap.impl.salesman

Class org.jgap.impl.salesman.Salesman extends java.lang.Object implements Serializable

Serialized Fields

m_config

Configuration m_config

m_maxEvolution

int m_maxEvolution

m_populationSize

int m_populationSize

m_acceptableCost

int m_acceptableCost

m_startOffset

int m_startOffset

Class org.jgap.impl.salesman.SalesmanFitnessFunction extends FitnessFunction implements Serializable

Serialized Fields

m_salesman

Salesman m_salesman

Package org.jgap.supergenes

Class org.jgap.supergenes.AbstractSupergene extends BaseGene implements Serializable

Serialized Fields

m_genes

Gene[] m_genes
Holds the genes of this supergene.


m_validator

SupergeneValidator m_validator
A validator (initially set to this


Package org.jgap.util

Class org.jgap.util.LRUCache extends java.util.LinkedHashMap implements Serializable

Serialized Fields

m_maxEntries

int m_maxEntries

Package org.jgap.xml

Class org.jgap.xml.GeneCreationException extends java.lang.Exception implements Serializable

Class org.jgap.xml.ImproperXMLException extends java.lang.Exception implements Serializable


JGAP