Crate nsga

source ·
Expand description


nsga is an opinionated implementation of the NSGA-II (Non-dominated Sorting Genetic Algorithm), a multi-objective genetic optimization algorithm.

The focus for this implementation is on practical applicability, not necessarily just for optimizing pure mathematical functions.

A short tutorial is avaialble here.



  • A trait that can alter computed fitness score for a solution
  • Evaluate the termination condition
  • A trait to implement a set of meta-parameters for the optimization
  • An optimization objective trait
  • Solution represents a candidate solution.