Copyright | (c) Fabricio Olivetti de Franca 2020 |
---|---|
License | GPL-3 |
Maintainer | fabricio.olivetti@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
IT.Algorithms
Description
Definitions for a Solution, Population of solutions, fitness function and mutation function.
Documentation
data type containing a solution, its fitness and weight vector
a
refers to the type of Expr
, b
refers to a container of statistics.
Constructors
Sol | |
Fields
|
type Population = [Solution] Source #
A population of 'Solution a b'
type Fitness = Expr -> Maybe Solution Source #
Fitness
function that takes a list of expressions and
returns an evaluated population.
This function is a good candidate for parallelization.
type Fitness a b = [Expr a] -> Population a b -- (Expr a, Double, b)
type Constraint = Expr -> [Double] -> Double Source #
Constraint
is a function that receives an expression and its coefficients
and return the penalty associated with the constraint violation.