from functools import reduce
from operator import add


def fitness(individual,target):
	"""
		individual : the individual to evaluate (a list)
		target : the target sum the individuals are aiming for
	"""
	sum = reduce(add,individual,0)

	return abs(target-sum)