def zdt1(individual):
 g = (1.0 + ((9.0 * sum(individual[1:])) / (len(individual) - 1)))
 f1 = individual[0]
 f2 = (g * (1 - sqrt((f1 / g))))
 return (f1, f2)

def zdt1 ( individual ) : g = ( 1.0 + ( ( 9.0 * sum ( individual [ 1 : ] ) ) / ( len ( individual ) - 1 ) ) ) f1 = individual [ 0 ] f2 = ( g * ( 1 - sqrt ( ( f1 / g ) ) ) ) return ( f1 , f2 )
zdt1 multiobjective function .