alogos.systems.pige.representation

Representations for piGE.

Classes

Genotype

PiGE genotype.

Individual

PiGE individual having a piGE genotype.

Population

PiGE population consisting of piGE individuals.


Detailed object descriptions

class alogos.systems.pige.representation.Genotype(data)[source]

Bases: alogos.systems._shared.representation.BaseGenotype

PiGE genotype.

__init__(self, data)[source]

Create a piGE genotype with immutable data.

Parameters:

data (tuple of int, or list of int, or str representation of one of the former options) – The provided data is converted to the first form.

Examples

The argument data could get following values of different types that all lead to the same result:

  • (177, 29, 113, 4, 55, 13, 220)

  • [177, 29, 113, 4, 55, 13, 220]

  • "(177, 29, 113, 4, 55, 13, 220)"

  • "[177, 29, 113, 4, 55, 13, 220]"

Raises:

GenotypeError – If the provided data can not be converted to the desired form.

class alogos.systems.pige.representation.Individual(genotype=None, phenotype=None, fitness=float('nan'), details=None)[source]

Bases: alogos.systems._shared.representation.BaseIndividual

PiGE individual having a piGE genotype.

class alogos.systems.pige.representation.Population(individuals)[source]

Bases: alogos.systems._shared.representation.BasePopulation

PiGE population consisting of piGE individuals.