public void myInit(ArrayList<Solve> population) {
        for (int i = 0; i < populationsize; i++) {
            population.add(randomSolve(chromosomesize));
        }

        int val, imin = 0;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < populationsize; i++) {
            //population.get(i).ValueSolve();
            val = population.get(i).Value;
            if (val < min) {
                imin = i;
                min = val;
            }
        }
        setBestSolve(population.get(imin));
    }