Différences entre les versions de « EASEA defined variables »
(→Genome) |
|||
Ligne 73 : | Ligne 73 : | ||
== Parent 1 == | == Parent 1 == | ||
− | Returns the genome of the first selected parent. Can only be used in the Crossover genome section. | + | Returns the genome of the first selected parent. Can only be used in the [[EASEA defined sections#Genome Crossover|crossover]] genome section. |
=== EASEA syntax === | === EASEA syntax === |
Version du 15 juin 2011 à 17:01
Current Generation
Return the current generation number. This variable can be modified.
EASEA syntax
currentGeneration
Number of Generation
Returns the generation limit. This variable can be modified.
EASEA syntax
NB_GEN
Population Size
Returns the size of the population. This variable cannot be modified.
EASEA syntax
POP_SIZE
Mutation Probability
Returns the mutation probability. This variable can be modified.
EASEA syntax
MUT_PROB
Crossover Probability
Returns the crossover probability. This variable can be modified.
EASEA syntax
XOVER_PROB
Minimise
Returns a boolean indicating of the algorithm performs a minimization of not. Returns true if minimizing.
EASEA syntax
MINIMISE
Population
Returns a pointer to the main population. This variable cannot be used everywhere. If misused, it can provoque unexpected behaviours or compile errors.
EASEA syntax
pPopulation ([i] to access individuals)
Best individual
Returns a pointer to the best individual found to this point. All the genome field can be accessed as well as the fitness field. All the genome fields can be modified.
EASEA syntax
bBest ("->" operator to access variables)
Genome
Returns the genome of an individual (can only be used in genome specific EASEA sections such as mutation, initialisation, [[EASEA defined sections#Genome Evaluation|evaluation and display). All the fields can be modified.
EASEA syntax
Genome ("." operator to access variables)
Parent 1
Returns the genome of the first selected parent. Can only be used in the crossover genome section.
EASEA syntax
parent1
Parent 2
Returns the genome of the second selected parent. Can only be used in the Crossover genome section.
EASEA syntax
parent2
Child
Returns the genome of the newly created individual. Can only be used in the Crossover genome section.
EASEA syntax
child