Maybe add a configuration flag for super optimisation, that is only those optimisations are allowed that improve the fitness or leave it at the same value.
IndividualWrapper could be used to make a copy of the actual Individual before mutating and if the new mutated version is worse then the previous one just undo the mutation by copying it back.
Maybe add a configuration flag for super optimisation, that is only those optimisations are allowed that improve the fitness or leave it at the same value.
IndividualWrapper
could be used to make a copy of the actualIndividual
before mutating and if the new mutated version is worse then the previous one just undo the mutation by copying it back.