Learning Python, DEAP and Genetic algorithms

242 views
Skip to first unread message

Lou Foss

unread,
Sep 21, 2015, 9:38:58 AM9/21/15
to deap-users












Hello!   I am taking an AI class and I am having difficulty understanding where to start using DEAP to solve a particular problem.  I have been through the tutorial and I have a general DEAP framework setup in my python program to perform the minimization required for this problem.

I'm lost in the math and I am having difficulty understanding where to start, or how to break down this problem into smaller functions.

Any help would be appreciated.


François-Michel De Rainville

unread,
Sep 21, 2015, 9:47:29 AM9/21/15
to deap-...@googlegroups.com
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

--
You received this message because you are subscribed to the Google Groups "deap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deap-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages