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.2 (2016.08.17)

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

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. Tip: Use lazy_static to share large data structure between individuals (see TSP example).