EASEA defined variables

De
Aller à la navigation Aller à la recherche

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)

fitness

pPopulation[i]->fitness

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