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

GeneticAlgorithm function fitness argument does not check number of inputs #23

Open
Dan-Christiansen opened this issue Jul 20, 2022 · 0 comments

Comments

@Dan-Christiansen
Copy link

The number of elements in the fitness tuple is not checked during GeneticAlgorithm function execution.

Example: when performing single objective minimization, the function is expected to work like

GeneticAlgorithm(..., fitness=(min,), ...)

But it can also work as

GeneticAlgorithm(..., fitness=('min', 'min', 'min', ...), ...)

which would be more appropriate for multi-objective.

The function will still execute and return the single objective

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