modea.Individual module¶
This module contains definitions of Individual classes, that allow for a common interface with different underlying genotypes (float, int, mixed-integer).
-
class
modea.Individual.
FloatIndividual
(n)¶ Bases:
object
Data holder class for individuals using a vector of floating point values as genotype. This type of individual can therefore be used by an Evolution Strategy (ES) such as the CMA-ES. Stores the genotype column vector and all individual-specific parameters. Default genotype is np.ones((n,1))
Parameters: n – dimensionality of the problem to be solved
-
class
modea.Individual.
MixedIntIndividual
(n, num_discrete, num_ints, num_floats=None)¶ Bases:
object
Data holder class for individuals using a vector containing both floating point and integer values as genotype. This type of individual can therefore be used by a GA with mixed-integer mutation operators. Stores the genotype column vector and all individual-specific parameters. Default genotype is np.ones((n,1))
Parameters: - n – Dimensionality of the problem to be solved, consisting of discrete, integers and floating point values
- num_discrete – Number of discrete values in the genotype.
- num_ints – Number of integer values in the genotype.
- num_floats – Number of floating point values in the genotype.
-
stepsizeMIES
¶
-
exception
modea.Individual.
MixedIntIndividualError
¶ Bases:
Exception