easyiec.core.Individual#

class easyiec.core.Individual(genome, id=-1, generation=0, parents=(), origin='init', params=<factory>, meta=<factory>)[source]#

Bases: object

A candidate solution shown to an evaluator.

Attributes:
genomeAny

Natural-unit genome (numpy.ndarray for real-coded problems, a string or a list for text problems).

idint

Identifier unique within a session.

generationint

Iteration of the strategy that created the individual.

parentstuple of int

Identifiers of the parents (empty for the initial population).

originstr

Variation operator that produced it ("init", "crossover", "mutation", "edit", "llm", "pso", …).

paramsdict

Strategy parameters carried by the individual (e.g. ES step sizes).

metadict

Free annotations: oracle utility, phenotype features, cached images.