measuring the diversity for CoEvolution

measuring the diversity for CoEvolution

Postby dreamstyler » Sun Jul 04, 2010 11:46 pm

if anyone is interested in measuring the diversity for CoEvolution or any "MultiPopulationBasedAlgorithm"
It takes the average of all the sub populations. ie. in the below example it will take the average diversity from all of the 5 sub PSO's

<algorithm id="coop-pso" class="coevolution.cooperative.CooperativeCoevolutionAlgorithm">
<addPopulationBasedAlgorithm idref="pso-E20"/>
<addPopulationBasedAlgorithm idref="pso-E20"/>
<addPopulationBasedAlgorithm idref="pso-E20"/>
<addPopulationBasedAlgorithm idref="pso-E20"/>
<addPopulationBasedAlgorithm idref="pso-E20"/>
</algorithm>


Add the attached file to cilib\src\main\java\net\sourceforge\cilib\measurement\single directory.
In the XML file make use of <addMeasurement class="measurement.single.DiversityCo"/>

NOTE: this makes use of the "measurement.single.Diversity" for the calculations. It is in essence a wrapper for "measurement.single.Diversity".
Therefore you can simply replace the "measurement.single.Diversity" with "measurement.single.DiversityCo" and it will work on any of the standard Algorithms that "measurement.single.Diversity" works on. ie It will work for any SinglePopulationBasedAlgorithm such as"pso.PSO" and MultiPopulationBasedAlgorithms such as "CooperativeCoevolutionAlgorithm".
dreamstyler
 
Posts: 5
Joined: Thu Mar 04, 2010 9:24 pm

Re: measuring the diversity for CoEvolution

Postby gpampara » Tue Jul 06, 2010 1:47 pm

That's all fine and dandy, but what exactly does the measurement do?

Does it measure the diversity of the individual sub-populations? If so, you can already get this functionality by using the CompositeMeasurement with the current Diversity measurement.

Additionally, did you attach your implementation?
gpampara
Site Admin
 
Posts: 114
Joined: Fri Aug 07, 2009 2:44 pm

Re: measuring the diversity for CoEvolution

Postby dreamstyler » Thu Jul 08, 2010 12:23 pm

I was not aware of the CompositeMesurement before, so yes it is basically using compositeMeasurement in combination with the diversity measurement.
One of the sample XML files should be altered to include composite measurement so that people who are new to the library can find it and see how to use it.

Ok my variation returns the average diversity instead of the"[.., .., ...]" variation which cida does not support. Could modify it to return the STD as well for the average.

When attaching a file it does not allow the extension java
dreamstyler
 
Posts: 5
Joined: Thu Mar 04, 2010 9:24 pm


Return to Functions

Who is online

Users browsing this forum: No registered users and 1 guest

cron