Module darwin_rs::individual [] [src]

This module defines the trait and the data structure needed for specifying each individual in a population.

darwin-rs: evolutionary algorithms with Rust

Written by Willi Kappler, Version 0.4 (2017.06.26)

Repository: https://github.com/willi-kappler/darwin-rs

License: MIT

This library allows you to write evolutionary algorithms (EA) in Rust. Examples provided: TSP, Sudoku, Queens Problem, OCR

Structs

IndividualWrapper

A wrapper helper struct for the individuals. It does the book keeping of the fitness and the number of mutations this individual has to run in one iteration.

Traits

Individual

This trait has to be implemented for the user defined struct. In order to share common data between all individuals use Arc. See TSP and OCR exmaples.