package Config;

import Individual.Individual;
import Population.Population;

import java.util.ArrayList;
import java.util.Random;

/**
 * Created by mfrindt on 09.11.16.
 */
public class Configuration {
    public static final int POPULATION_SIZE = 100; /* population 100-500 */
    public static final int NUMBER_OF_SELECTIONS = 10;
    public static final int CROSSOVER = (POPULATION_SIZE - NUMBER_OF_SELECTIONS) / 2; /* sei der Anteil, der in jedem Schritt durch Crossover ersetzt wird */
    public static final double MUTATIONRATE = 90; /* mutationsrate */

    public static final int NUMBER_OF_PERMUTATIONS = 1;
    public static final Individual HYPOTHESE = new Individual();
    public static final int BITSTRING_SIZE = 100;

    public static int GENERATION_COUNTER = 0; /* counter for generations */

    public static double BEST_FITNESS = 0;   /* best individual */
    public static final double FITNESS_THRESHOLD = 10;  /* goal */

    public static Population nextGeneration = new Population("NEXT GENERATION");
}

@@ -43,92 +43,8 @@
 ual;
-%0Aimport Population.Population;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Random;
 %0A%0A/*
@@ -159,17 +159,17 @@
 _SIZE = 
-1
+5
 00; /* p
@@ -243,16 +243,30 @@
 NS = 10;
+ // in Prozent
 %0A    pub
@@ -462,17 +462,17 @@
 NRATE = 
-9
+3
 0; /* mu
@@ -483,16 +483,27 @@
 onsrate 
+in Prozent 
 */%0A%0A    
@@ -867,16 +867,17 @@
 OLD = 10
+0
 ;  /* go
@@ -885,89 +885,7 @@
 l */
-%0A%0A    public static Population nextGeneration = new Population(%22NEXT GENERATION%22);
 %0A%7D%0A

clean code Configuration