예제 #1
0
 public SerialGATest(double TestingResultsSelectionThreshold, int TournamentGroupQuantity,
                     double PercentOfChangeGeneInInitializationStep, int ResultsInitialQuantity)
 {
     SGA = new SerialGA();
     individualListInitialQuantity = ResultsInitialQuantity;
     individualList = new Individual[individualListInitialQuantity];
     testingResultsSelectionThreshold = TestingResultsSelectionThreshold;
     //settings
     SGA.PercentOfChangeGeneInInitializationStep = PercentOfChangeGeneInInitializationStep;
     SGA.TournamentGroupQuantity = TournamentGroupQuantity;
 }
예제 #2
0
 private void buttonSearch_Click(object sender, EventArgs e)
 {
     testingResult       = new TestingResultsOfClasterization(100);
     SGA                 = new SerialGA();
     PGA                 = new ParallelGA();
     searchClick         = true;
     progressBar.Minimum = 0;
     progressBar.Maximum = int.Parse(textBoxGenerationsNumber.Text);
     if (saveResultsFileDialog.ShowDialog() == DialogResult.OK)
     {
         resultFileName = saveResultsFileDialog.FileName;
         if (saveFileDialogTestData.ShowDialog() == DialogResult.OK)
         {
             resultTestFileName = saveFileDialogTestData.FileName;
             Thread st = new Thread(Search);
             st.IsBackground = true;
             st.Start();
         }
     }
 }
예제 #3
0
 public SerialGATest()
 {
     SGA = new SerialGA();
     testingResultsSelectionThreshold = 0.85;
 }