def fonseca(individual):
 f_1 = (1 - exp((- sum((((xi - (1 / sqrt(3))) ** 2) for xi in individual[:3])))))
 f_2 = (1 - exp((- sum((((xi + (1 / sqrt(3))) ** 2) for xi in individual[:3])))))
 return (f_1, f_2)

def fonseca ( individual ) : f_1 = ( 1 - exp ( ( - sum ( ( ( ( xi - ( 1 / sqrt ( 3 ) ) ) ** 2 ) for xi in individual [ : 3 ] ) ) ) ) ) f_2 = ( 1 - exp ( ( - sum ( ( ( ( xi + ( 1 / sqrt ( 3 ) ) ) ** 2 ) for xi in individual [ : 3 ] ) ) ) ) ) return ( f_1 , f_2 )
fonseca and flemings multiobjective function .