anyoptimization / pymoo

NSGA2, NSGA3, R-NSGA3, MOEAD, Genetic Algorithms (GA), Differential Evolution (DE), CMAES, PSO
https://pymoo.org
Apache License 2.0
2.28k stars 392 forks source link

Failed import of pymoo.operators.survival.rank_and_crowding with pymoo=0.6.0 #395

Closed georgiachanning closed 1 year ago

georgiachanning commented 1 year ago

from pymoo.operators.survival.rank_and_crowding import RankAndCrowding results in ModuleNotFoundError: No module named 'pymoo.operators.survival.rank_and_crowding'. A la NSGA2. pip install -U pymoo results in this issue.

Lyleregenwetter commented 1 year ago

Experienced the same with conda.

cyrilpic commented 1 year ago

The module pymoo.operators.survival.rank_and_crowding doesn't exist in a release version of pymoo (0.6.0.1 or earlier). In these versions, the rank and crowding operator is implemented in pymoo.algorithms.moo.nsga2.

If you need to use it, you need to install pymoo from github.