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
:Enum
containing genotype representation.:size
:non_neg_integer
representing size of chromosome.:age
:non_neg_integer
representing age of chromosome.:fitness
:number
orEnum
representing fitness(es) of chromosome.:weights
:number
orEnum
representing weights of each objective.:f
:Function
used to evaluate chromosome.:collection
:Function
used to store chromosome.