Evolutionary.jl

The package Evolutionary aims to provide a library for evolutionary optimization. It provides implementation of $(\mu/\rho \; \stackrel{+}{,} \;\lambda)$-Evolution Strategy, $(\mu/\mu_I, \;\lambda)$-Covariance Matrix Adaptation Evolution Strategy, Genetic Algorithm, and Differential Evolution as well as a rich set of mutation, recombination, crossover and selection functions.

Getting started

To install the package just type

] add Evolutionary

A simple example of using the GA algorithm to find minimum of the Sphere function.

julia> using Evolutionary

julia> result = Evolutionary.optimize(
             x -> sum(x.^2), ones(3),
             GA(populationSize = 100, selection = susinv,
                crossover = discrete, mutation = domainrange(ones(3))))

 * Status: success

 * Candidate solution
    Minimizer:  [3.814697265625e-6, 1.52587890625e-5, -1.33514404296875e-5]
    Minimum:    4.256435204297304e-10
    Iterations: 101

 * Found with
    Algorithm: GA[P=100,x=0.8,μ=0.1,ɛ=0]

 * Work counters
    Seconds run:   0.2423 (vs limit Inf)
    Iterations:    101
    f(x) calls:    10252