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

Rename cuckoo search's --max-generations option to --iteration-number #24

Open
HaaLeo opened this issue Nov 10, 2020 · 0 comments
Open
Labels
cuckoo search Issues related to the cucoo search algorithm discussion (design) discussions engineering Under the hood enhancements help wanted Community contribution is heavily appreciated

Comments

@HaaLeo
Copy link
Owner

HaaLeo commented Nov 10, 2020

Description

The cuckoo search is the only algorithm whose amount of iterations is indicated by the --max-generations flag. All other algorithms use a flag --iteration-number to indicate that. Originally this naming was chosen to stick as close as possible to the paper's wording.

Pros

However, this causes that every algorithm must specify in its main.py its own option --iteration-number. Renaming the cuckoo search's option to --iteration-number enables us to move this option from an algorithm level to the top level of the CLI (swarm -i 15 wolves 12 instead of swarm wolves -i 15 12). In my opinion this is somewhat cleaner from a developer's point of view.

Cons

On the other hand, renaming the cuckoo search's option removes some of the algorithm's explanations and could make it less accessible to users. This is in contrast to swarmlib's overall goal: Making it easier to get into swarm optimization.

Summary

With this issue we want to discuss the trade-off of cleaner code vs. user accessibility.

Input and opinions from the community are heavily appreciated.

@HaaLeo HaaLeo added help wanted Community contribution is heavily appreciated cuckoo search Issues related to the cucoo search algorithm engineering Under the hood enhancements discussion (design) discussions labels Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuckoo search Issues related to the cucoo search algorithm discussion (design) discussions engineering Under the hood enhancements help wanted Community contribution is heavily appreciated
Projects
None yet
Development

No branches or pull requests

1 participant