class

Mining::Ga

Inherits Reference < Object

Constructors

new(pop_size : Int32, genotype_len : Int32)

An individual is the permutation of [0, 1, ..., genotype_len - 1]

Source

Instance methods

best_error
Source
best_individual
Source
fitness_fun=(fitness_fun : Array(Int32) -> Float64)
Source
genotype_len
Source
n_iterations=(n_iterations : Int32)
Source
pmx(arr1 : Array(Int32), arr2 : Array(Int32), arr3 : Array(Int32), test = false)
Source
pop_size
Source
population
Source
tournament_size=(tournament_size : Int32)
Source