Crossover different length genotypes

允我心安 提交于 2019-12-05 17:56:50

If you already have variable length chromosomes, then it shouldnt matter how you do it, you just need to select a crossover point for each of them, and then crossover as normal.

For example using your chromosomes, I have selected two points (.) at random:

1 6 8 9.0 3 4 7 5
3 6.5 7 8 5

With resulting chromosomes:

1 6 8 9.5 7 8 5
3 6.0 3 4 7 5
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!