Population¶
-
class
modcma.population.Population(x, y, f, s=None)¶ Bases:
objectObject for holding a Population of individuals.
Attributes Summary
The dimension of the individuals in the population.
The number of individuals in the population.
Methods Summary
copy()Return a new population object, with it’s variables copied.
sort()Sort the population according to their fitness values.
Attributes Documentation
-
d¶ The dimension of the individuals in the population.
-
n¶ The number of individuals in the population.
Methods Documentation
-
copy() → modcma.population.Population¶ Return a new population object, with it’s variables copied.
- Returns
- Return type
-
sort() → modcma.population.Population¶ Sort the population according to their fitness values.
-