MeltThenFreezeAlternateMutation extends TWEANNMutation { public void mutate(Genotype<TWEANN> genotype) { ((TWEANNGenotype) genotype).alternateFrozenPreferencePolicy(); } MeltThenFreezeAlternateMutation(); void mutate(Genotype<TWEANN> genotype);  }
@Test public void test() { tg1.insertPreferenceNeuron(0); for(int i = 0; i < tg1.nodes.size(); i++) { assertFalse(tg1.nodes.get(i).isFrozen()); } tg1.freezePreferenceNeurons(); int firstPreference = tg1.outputStartIndex() + tg1.neuronsPerModule; mtfam.mutate(tg1); for(int i = 0; i < firstPreference; i++) { assertTrue(tg1.nodes.get(i).isFrozen()); } }