jmejia8 / Metaheuristics.jl

High-performance metaheuristics for optimization coded purely in Julia.
https://jmejia8.github.io/Metaheuristics.jl/stable/
Other
253 stars 27 forks source link

Fix stepsize and population referencing in DE algorithm #103

Closed jonathanfischer97 closed 7 months ago

jonathanfischer97 commented 7 months ago

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.

jmejia8 commented 7 months ago

Nice! Thanks.