Exemplo n.º 1
0
        public Individual(Chromosome[] genotypeAlfa, Chromosome[] genotypeBeta, MutationType _mutation, GenotypeMixer _genMixer)
        {
            this.mutation = _mutation;
            this.genMixer = _genMixer;

            this.genotype = genMixer.Mix(genotypeAlfa, genotypeBeta);
        }
Exemplo n.º 2
0
        public Individual(MutationType _mutation, GenotypeMixer _genMixer, GeneValue[] allPossibleGenes, int cromosomeAmount, int cromosomeLength)
        {
            this.mutation = _mutation;
            this.genMixer = _genMixer;

            InitGenotype(allPossibleGenes, cromosomeAmount, cromosomeLength);

            score = 0;
        }