parga-0.5.0.0: A parallel implementation of genetic algorithms.

Safe HaskellNone

AI.GA.Population.AugList

Description

This module provides convenience functions to do the main steps of evolution based on the augmented population, i.e. where each chromosome is coupled with the cost, selection probability, or some other weight measure. This is useful when the cost function is to be calculated externally, making it difficult to use the standard solvers of the parga library.

Documentation

type GAApp c m = ReaderT (Config c (ListPop c) TFGen) (StateT TFGen m)

type ListAugPop c = [(c, Double)]

augNewKeep :: (Chromosome c, Monad m) => Int -> ListAugPop c -> GAApp c m (ListPop c)

augNew :: (Chromosome c, Monad m) => Int -> ListAugPop c -> GAApp c m (ListPop c)

augNewPop :: (Chromosome c, Monad m) => Int -> ListAugPop c -> GAApp c m (ListPop c)