Population

class modcma.population.Population(x, y, f, s=None)

Bases: object

Object for holding a Population of individuals.

Attributes Summary

d

The dimension of the individuals in the population.

n

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

Population

sort()modcma.population.Population

Sort the population according to their fitness values.