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

Why can't I get "equal lengths" of fitness values? #700

Open
cyasing opened this issue May 24, 2023 · 0 comments
Open

Why can't I get "equal lengths" of fitness values? #700

cyasing opened this issue May 24, 2023 · 0 comments

Comments

@cyasing
Copy link

cyasing commented May 24, 2023

I am doing a multiobjective optimization using FitnessMulti type with weights=(-1.0, 1.0) and 5 variables to be optimized. It is, however, giving me the error: "Assigned values have not the same length than fitness weights" at line:
for ind, fit in zip(pop, fitnesses): ind.fitness.values = fit.

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