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; }
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(); } } }
public SerialGATest() { SGA = new SerialGA(); testingResultsSelectionThreshold = 0.85; }