Genex v1.0.1-beta Genex.Types.Chromosome View Source
Genex representation of a single solution.
A Chromosome represents one solution to the problem you are trying to solve. Solutions are encoded into a collection of genes. The Chromosome is then evaluated based on some criteria you define.
Chromosomes in Genex can be defined as very "self-aware." That is to say: they contain all of the information necessary to repair and evaluate themselves. This fact can be used for some interesting applications.
Link to this section Summary
Link to this section Types
Chromosome type.
Chromosomes are represented as a %Chromosome{}. At a minimum a chromosome needs :genes, :f, and :collection.
Fields
:genes:Enumcontaining genotype representation.:size:non_neg_integerrepresenting size of chromosome.:age:non_neg_integerrepresenting age of chromosome.:fitness:numberorEnumrepresenting fitness(es) of chromosome.:weights:numberorEnumrepresenting weights of each objective.:f:Functionused to evaluate chromosome.:collection:Functionused to store chromosome.