Method: FeldtRuby::Optimize::DE_MutationStrategy_Best_1#mutate

Defined in:
lib/feldtruby/optimize/differential_evolution.rb

#mutate(targetIndex, donorParentsIndices) ⇒ Object



173
174
175
176
# File 'lib/feldtruby/optimize/differential_evolution.rb', line 173

def mutate(targetIndex, donorParentsIndices)
	p1, p2 = get_candidates_with_indices(donorParentsIndices)
	candidate_from_array(best) + (scale_factor(targetIndex) * (p1 - p2))
end