[jgap-users] java.lang.RuntimeException: applyMutation may not be called for a CompositeGene.
Brought to you by:
klausikm
From: Emmanouil K. <emm...@gm...> - 2014-10-27 18:38:41
|
Hello everyone, I would be really pleased if anyone knows how is possible to avoid this exception: Exception in thread "main" java.lang.RuntimeException: applyMutation may not be called for a CompositeGene. Call this method for each gene contained in the CompositeGene. at org.jgap.impl.CompositeGene.applyMutation(CompositeGene.java:628) at org.jgap.impl.MutationOperator.mutateGene(MutationOperator.java:266) at org.jgap.impl.MutationOperator.operate(MutationOperator.java:230) at org.jgap.BreederBase.applyGeneticOperators(BreederBase.java:141) at org.jgap.impl.GABreeder.evolve(GABreeder.java:135) at org.jgap.Genotype.evolve(Genotype.java:233) at org.jgap.Genotype.evolve(Genotype.java:250) I actually have a composite gene chromosome and when I try to evolve I get the exception. Thank you, Emmanouil. |