def cigar(individual):
 return (((individual[0] ** 2) + (1000000.0 * sum(((gene * gene) for gene in individual)))),)

def cigar ( individual ) : return ( ( ( individual [ 0 ] ** 2 ) + ( 1000000.0 * sum ( ( ( gene * gene ) for gene in individual ) ) ) ) , )
cigar test objective function .