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

Documentation bug in strategy 2 (default) #33

Open
jaburgoyne opened this issue May 23, 2024 · 0 comments
Open

Documentation bug in strategy 2 (default) #33

jaburgoyne opened this issue May 23, 2024 · 0 comments

Comments

@jaburgoyne
Copy link

jaburgoyne commented May 23, 2024

The documentation describes the local-to-best update (strategy 2, the default) as
$$v_{i,g} = old_{i,g} + (best_g - old_{i,g}) + x_{r0,g} + F \cdot (x_{r1,g} - x_{r2,g})$$
This doesn’t really make sense or seem to match how local-to-best is described in the literature. (I’m quite new to differential evolution, though, and so please correct me if I’m wrong there.)

But more importantly, the documentation also doesn’t match the code. The update rule should be
$$v_{i,g} = old_{i,g} + F \cdot (best_g - old_{i,g}) + F \cdot (x_{r1,g} - x_{r2,g})$$

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

No branches or pull requests

1 participant