PonyGE / PonyGE2

PonyGE2: grammatical evolution and variants in Python
GNU General Public License v3.0
155 stars 92 forks source link

progsys Digits problem #148

Open mfjoneill opened 2 years ago

mfjoneill commented 2 years ago

In some cases the fitness can exceed sys.maxsize and cause a run to abort. I will create a pull request to fix this in general for all progsys problems by adding a new condition in evaluate() progsys.py:

    if 'quality' in result:
        if result['quality'] > sys.maxsize:
            result['quality'] = sys.maxsize