Hi, in my application, each individual have 6 genes, see below:
...
Gene[] genotype = new Gene[6];
genotype[0] = new DoubleGene(conf, 0.5, 1.5);
genotype[1] = new DoubleGene(conf, 0.5, 1.5);
genotype[2] = new DoubleGene(conf, 0.5, 1.5);
genotype[3] = new DoubleGene(conf, 0.00, 360.00);
genotype[4] = new DoubleGene(conf, -90.00, 90.00);
genotype[5] = new DoubleGene(conf, -90.00, 90.00);
...
Now, I want to restrict the crossover operation. When two solutions are mating, the genes 0, 1 and 2 must be swaped together. The same for genes 3, 4 and 5. To solve my problem I need define my own custom genes?
Thanks very much!!!
Ary Junior
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
jgap-users mailing list
jgap-users@...
https://lists.sourceforge.net/lists/listinfo/jgap-users