DEAP will optimize the parameters of a given objective function. I haven't read your assignment, but you should:
1- Start by transforming the parameters of your objective function into a vector as in the onemax or tsp example.
2- Then in the evaluation function you will receive one by one the vectors and compute their cost. Return the cost(s) and it (they) will be associated with the given vectors.
3- Let the EA do its magic.
4- Retrieve the best vector (individual in a hall of fame).
I hope it helps
Best regards,
François-Michel