Geatpy2进化算法工具箱

Geatpy2

github地址:https://github.com/geatpy-dev/geatpy

报错及解决方法

1、运行geatpy/Algorithm.py时报错:

Traceback (most recent call last):
  File "E:/geatpy/geatpy/Algorithm.py", line 3, in <module>
    import geatpy as ea
  File "E:\geatpy\geatpy\__init__.py", line 17, in <module>
    from awGA import awGA
ModuleNotFoundError: No module named 'awGA'

找到_core下相应系统及相应的python版本v3.5-v3.8的目录来替换lib_path路径
修改geatpy/init.py 第十三行:lib_path = file[:-11] + ‘core/’为
lib_path = “/geatpy/_core/Windows/lib64/v3.8”

Quick start

进化算法介绍

Geatpy快速入门