Mining::Ga
Inherits Reference < Object
Constructors
new(pop_size : Int32, genotype_len : Int32)
An individual is the permutation of [0, 1, ..., genotype_len - 1]
Instance methods
best_error
Sourcebest_individual
Sourcefitness_fun=(fitness_fun : Array(Int32) -> Float64)
Sourcegenotype_len
Sourcen_iterations=(n_iterations : Int32)
Sourcepmx(arr1 : Array(Int32), arr2 : Array(Int32), arr3 : Array(Int32), test = false)
Sourcepop_size
Sourcepopulation
Sourcerun
Sourcetournament_size=(tournament_size : Int32)
Source