willi-kappler / darwin-rs

darwin-rs, evolutionary algorithms with rust
MIT License
116 stars 16 forks source link

Super optimisation? #10

Open willi-kappler opened 8 years ago

willi-kappler commented 8 years ago

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.