SevgiAkten / pycellga

Cellular Genetic Algorithms in Python.
https://sevgiakten.github.io/pycellga/
MIT License
2 stars 1 forks source link

Introducing the Enum Type #39

Closed jbytecode closed 3 months ago

jbytecode commented 3 months ago

The older form of the code has included "Real", "Real-valued", etc, using String representation for enumerations is dangerous.

So I will try to introduce a new Enum type

class GeneType(Enum):
    BINARY = 1
    PERMUTATION = 2
    REAL = 3
jbytecode commented 3 months ago

This patch is merged and passes the tests.

please feel free to close this issue if you are agreed with the change.

jbytecode commented 3 months ago

This commit fixes this issue: https://github.com/SevgiAkten/pycellga/commit/7279e0d322daf180d08228085284cc380276abf3

SevgiAkten commented 3 months ago

Thank you! I’ve reviewed the changes, and everything looks good to me. I’ll close the issue now.