pop = toolbox.population(n=populationNo)
hof = tools.ParetoFront()
stats = tools.Statistics(lambda ind: ind.fitness.values)
stats.register("max", max)
gen evals max
0 300 [0.1205, 0.16, 0.1279]
1 590 [0.1205, 0.16, 0.1364]
2 611 [0.1205, 0.16, 0.1364]
3 602 [0.1205, 0.16, 0.1364]
4 582 [0.1205, 0.1784, 0.1364]
5 597 [0.1205, 0.1784, 0.1364]
6 623 [0.1205, 0.1784, 0.1364]
7 576 [0.1205, 0.1784, 0.1364]
8 620 [0.1205, 0.1784, 0.1364]
9 612 [0.1205, 0.1784, 0.1364]
10 609 [0.1205, 0.1784, 0.1364]
(0.12051855597184445, 0.11850680042046814, 0.096363795642769104)
(0.0944539699428395, 0.17841238174356525, 0.12666687603357699)
(0.020997711353802316, 0.15600067880897239, 0.13636386175863552)
0.1205, 0.1784, 0.1364). With what criteria can I select the individual that has as high as possible values of these three objective functions? Can I print in every generation the fitness value of that best individual?Hi Marc-Andre,
Thank you for the detailed explanation. Yet are there any methods implemented in python that you would suggest for the selection of one optimum individual. I have found many in the literature but I cant decide which one is the best and easiest to incorporate into my code.
Thanks,
Thomas
--
You received this message because you are subscribed to a topic in the Google Groups "deap-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/deap-users/wUcLPGJnJDg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to deap-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dear Thomas,
As MA said there is no single way to do this as it depends on your specific problem and the kind of compromise you are able to make. You may have to work this out on your own.
Either, you can use multi-objective during the evolution and make your decision at the end or combine in some way your multiple fitness values into a single value at evaluation time. These are the main two solution IMHO.
Cheers,
François-Michel
======================================================================
Thomas Evangelidis
PhD student
University of Athensemail: tev...@pharm.uoa.gr
website:
https://sites.google.com/site/thomasevangelidishomepage/
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.
I use the NSGA-II selector, so I guess in case of tools.HallOfFame(1) the final solution with be made by NSGA-II right?
The hall of fame is lexicographically sorted at all time so that the first element of the hall of fame is the individual that has the best first fitness value ever seen, according to the weights provided to the fitness at creation time.(source : http://deap.gel.ulaval.ca/doc/default/api/tools.html#deap.tools.HallOfFame)
firstRankedNSGAIndividual = tools.selNSGA2(population, 1)[0]