This pull request fixes the stepsize update and and makes minor syntactical changes to population referencing in the DE algorithm.
The stepsize is now correctly written to the parameters in update_state!, because before the new F and CR were only being updated locally and not updating the corresponding fields in parameters.
As a minor change, the population referencing in reproduction has been cleaned up, and in the loop X is updated using the more idiomatic broadcast assignment for writing to array slices.
This pull request fixes the stepsize update and and makes minor syntactical changes to population referencing in the DE algorithm. The stepsize is now correctly written to the parameters in
update_state!
, because before the new F and CR were only being updated locally and not updating the corresponding fields in parameters. As a minor change, the population referencing inreproduction
has been cleaned up, and in the loop X is updated using the more idiomatic broadcast assignment for writing to array slices.