Averaging Crossover (bug?)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Averaging Crossover (bug?)

Massimiliano Sartirana - Crea
Hello,
I'm developing an algorithm with JGAP using Supergenes

AveragingCrossoverOperator crashes when using that kind of genes
telling cannot cast it to IntegerGene.

I can be wrong but I think it's because on line 222 of
AveragingCrossoverOperator.java
there is a

if (secondGenes[j] instanceof CompositeGene) {

instead of

if (secondGenes[j] instanceof ICompositeGene) {



I hope it's helpful, if not, excuse me :)

BTW, Congratulations for your work!
have a good day.

--
Max

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
jgap-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jgap-users