private int getNumIterations() {
        int numIterations;
        if (population.getGenerationNumber() > 20) {
            numIterations = population.getGenerationNumber() * AppProperties.coefMultiplEpoch() * 2;
        } else {
            numIterations = population.getGenerationNumber() * AppProperties.coefMultiplEpoch();
        }
        if (numIterations > AppProperties.numberIterationsBP()) {
            numIterations = AppProperties.numberIterationsBP();
        }
        return numIterations;
    }