alan-turing-institute / p2lab-pokemon

A Python library for running genetic algorithms to optimize Pokemon teams!
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Need the ability to run without Mutation and without Breeding #15

Closed LydiaFrance closed 1 year ago

LydiaFrance commented 1 year ago

In order to test 1v1 battles we need a way to run without mutation and without breeding.

philswatton commented 1 year ago

Without breeding has been added in #20. Without mutation hasn't been explicitly added but the mutation probability can be set very near 0 - could easily be added to turn it off completely?

Or could be quickly added?

phinate commented 1 year ago

i've added this in src/p2lab/genetic/genetic.pyin #35 by just special-casing 1v1s to skip the crossover/mutation for now :)