public GeneticAlgorithm(TelcoSur telcoSur, GeneticAlgorithmParameters parameters)
 {
     this.TelcoSur             = telcoSur;
     this.elitismPercentage    = parameters.ElitismPercentage;
     this.crossoverProbability = parameters.CrossoverProbability;
     this.mutationProbability  = parameters.MutationProbability;
     this.generationExpected   = parameters.GenerationExpected;
     this.Population           = parameters.Population;
     this.ChromosomeMaxLength  = parameters.ChrmosomeMaxLength;
 }
Exemple #2
0
 private void btnRunGA_Click(object sender, EventArgs e)
 {
     this.Parameters = new GeneticAlgorithmParameters((int)numElitismPercentage.Value, (double)numCrossoverProbability.Value, (double)numMutationProbability.Value, (int)numGenerationStop.Value,
                                                      (int)numPopulation.Value, (int)numChromosomeMaxLength.Value);
     this.DialogResult = DialogResult.OK;
 }