def sphere(individual):
 return (sum(((gene * gene) for gene in individual)),)

def sphere ( individual ) : return ( sum ( ( ( gene * gene ) for gene in individual ) ) , )
sphere test objective function .