How to use multiple mutation/crossover operators in DEAP python?

549 Views Asked by At

Is there a way in DEAP to use more than one mutation or more than one crossover with their own probability?

The algorithms expect 'mate' and 'mutate' to be registered in the toolbox.

I can technically create my own function that chooses which mutation to use based on a random value and pass it as the operator.

But I am wondering if there's a way to do it with the library. All the examples I've seen uses one mutation operator and one crossover operator.

Thanks

0

There are 0 best solutions below