13
Accelerating Genetic Algorithms – the Power of Concurrency
This chapter delves into the use of concurrency, with a special focus on multiprocessing, as a means to boost the performance of genetic algorithms. We will explore both built-in Python functionalities and an external library to achieve this enhancement.
The chapter starts by highlighting the potential benefits of applying concurrency to genetic algorithms. We then proceed to put this theory into practice by experimenting with various multiprocessing approaches to a CPU-intensive version of the well-known One-Max problem. This enables us to gauge the extent of performance improvements achievable through these techniques.
By the end of this chapter, you will be able to do the following: ...
Get Hands-On Genetic Algorithms with Python - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.