public GestoreRN_NEAT(int input, int output, int perceptronNumber=1)
        {
            contGenotipo = -1;
            contNeuroni = 0;
            contAssoni = 0;
            genotipi = new SortedSet<GenotipoRN>();
            population = new List<GenotipoRN>();
            futurePopulation = new List<GenotipoRN>();

            speciesManager = new SpeciesManager(this);

            perceptron=generaPerceptron(input, output);
            for (int i = 0; i < perceptronNumber;i++)
            {
                speciesManager.addGenotipo(mutazioneModificaPesoRadicalmenteTuttiAssoni(getPerceptron()));
            }

            population = speciesManager.GetListGenotipo();
        }
Пример #2
0
        public Species(GenotipoRN champion, SpeciesManager manager)
        {
            this.manager = manager;
            this.champion = champion;

            gList = new List<GenotipoRN>();
            gList.Add(champion);
        }