Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stepsize and population referencing in DE algorithm #103

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

jonathanfischer97
Copy link
Contributor

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
Copy link
Owner

jmejia8 commented Jan 23, 2024

Nice! Thanks.

@jmejia8 jmejia8 merged commit 9aacebe into jmejia8:master Jan 23, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants