PYTHON 上的遗传算法和多目标优化:要使用的库/工具?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16739118/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 23:30:01  来源:igfitidea点击:

Genetic Algorithms and multi-objectives optimization on PYTHON : libraries/tools to use?

pythonoptimizationgenetic-algorithm

提问by Serge

I am scanning the internet for libraries available to use GA with potential development for multi-objective algorithms like NSGAII for Python. Do you have any suggestion?

我正在互联网上搜索可用于使用 GA 的库,这些库具有多目标算法(如 Python 的 NSGAII)的潜在开发。你有什么建议吗?

Here is what I have so far:

这是我到目前为止所拥有的:

  1. Pyevolve: Well documented but doesn't include multi objective
  2. Pygene: Doesn't seem to include multi objective
  3. deap: Seems well documented, includes multi objective
  4. inspyred: seems ok-documented, includes multi objective
  1. Pyevolve:有据可查但不包括多目标
  2. Pygene:似乎不包括多目标
  3. deap:似乎有据可查,包括多目标
  4. inspyred:似乎记录良好,包括多目标

The question is not necessarily about which one is better but more about the features of these libraries and the possibility to switch easily from single to multi-objective optimization.

问题不一定是哪个更好,而是更多关于这些库的功能以及从单目标优化到多目标优化轻松切换的可能性。

Thank you

谢谢

采纳答案by CmdNtrf

Disclosure: I am of one of the developers of DEAP.

披露:我是 DEAP 的开发人员之一。

DEAP is the most actively developed project amongst the ones mentioned. It has an active mailing-list, which is an interesting feature if you need help at some point. The class creation which is unique to DEAP makes switching from single to multiple objectives really easy. It comes with multiple examples, including examples of multiobjective genetic algorithms.

DEAP 是上述项目中开发最积极的项目。它有一个活跃的邮件列表,如果您在某个时候需要帮助,这是一个有趣的功能。DEAP 独有的类创建使得从单一目标切换到多个目标非常容易。它带有多个示例,包括多目标遗传算法的示例。

It is also compatible with both Python 2 and 3, while some other frameworks only support Python 2. Finally, while it is written in pure Python, we will always have performances in mind, so it is quite fast. Timing of the different examples are available at http://deap.gel.ulaval.ca/speed/.

它也兼容Python 2和3,而其他一些框架只支持Python 2。最后,虽然它是用纯Python编写的,但我们总是会考虑性能,所以它是相当快的。不同示例的时间安排可在http://deap.gel.ulaval.ca/speed/ 获得

回答by Imanol Luengo

Pybrainseems to have GA and multiobjective GA:

Pybrain似乎有 GA 和多目标 GA:

http://pybrain.org/docs/api/optimization/optimization.html?highlight=genetic#population-based

http://pybrain.org/docs/api/optimization/optimization.html?highlight=genetic#population-based

Still seems to be a bit basic. I didn't try it so I can't tell you how good it is.

似乎还是有点基础。我没有尝试,所以我不能告诉你它有多好。