simplify the way optimal solutions are calculated
move function to export optimal solutions to Population class