public void writeLog(ArrayList<Solve> population, int i, String str) throws IOException {
        bufferedWriter.write("Поколение" + i + "\n");
        bufferedWriter.write(str + "\n");
        for (int j = 0; j < populationsize; j++) {
            for (int k = 0; k < population.get(j).Colors.size(); k++) {
                bufferedWriter.write(population.get(j).Colors.get(k) + " ");
            }
            bufferedWriter.write("\t");
            bufferedWriter.write("" + population.get(j).Value);
            bufferedWriter.write("\n");
        }
    }