Genetic algorithm optimization for generics

Hi folks,

Trying to optimize a simple genetic algorithm implementation for general purpose use.

The problem I am running into is removing the dependency of the concrete implementation of the core trait being used for the algorithm.

The script is available at the playground:

Thanks for your feedback and merry christmas!

This is generic over T: GenomeAndModel: playground.

1 Like


1 Like

You can try it out here

and for codingame change the env to prod in the script, then copy it over to the Marslander puzzle at CodinGame:

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.