(ga_engine)
return False
Terminate the evolution based on the raw stats

    Example:
       >>> ga_engine.terminationCriteria.set(GSimpleGA.RawStatsCriteria)
Terminate the evolution based on the raw stats
Terminate the evolution based on the raw stats
def RawStatsCriteria(ga_engine):
    """ Terminate the evolution based on the raw stats

    Example:
       >>> ga_engine.terminationCriteria.set(GSimpleGA.RawStatsCriteria)

    """
    stats = ga_engine.getStatistics()
    if stats["rawMax"] == stats["rawMin"]:
        if stats["rawAve"] == stats["rawMax"]:
            return True
    return False
def RawStatsCriteria ( ga_engine ) : stats = ga_engine . getStatistics ( ) if stats [ "rawMax" ] == stats [ "rawMin" ] : if stats [ "rawAve" ] == stats [ "rawMax" ] : return True return False