());
. RemoveAt (rnd.Next (0, elite.Count - 1));
= elite [rnd.Next (0, elite.Count - 1)]; = list [rnd.Next (0, list.Count - 1)];
(ClRet1 (can.Diagonal)> = ClRet1 (rec.Diagonal)
&& ClRet2 (can.Resp_time)> = ClRet2 (rec.Resp_time)
&& ClRet3 (can.Angle)> = ClRet3 (rec.Angle)
&& ClRet4 (can.Resolution)> = ClRet4 (rec.Resolution)). Add (can);. Add (list [rnd.Next (0, list.Count - 1 )]);
= 0; (int i = 0; i
{. BackColor = Color.Green;. Text = "Еліта розвивається";
}
{. BackColor = Color.Red;. Text = "Еліта деградує";
}
(rnd.Next (0, 100) <= 2)
{. RemoveAt (rnd.Next (0, elite.Count - 1)); + = 1;. Text = "Випадкових вилучень:" + sluch.ToString ();. Visible = true;. Add (list [rnd.Next (0, list.Count - 1)]);
}
. DataSource = null;. Rows.Clear ();
. DataSource = elite;
}
}
/// Прополка
///
///
/// void button4_Click (object sender, EventArgs e)
{. Visible = false;. Visible = false; (numericUpDown3.Value> 0)
{kol; vyvod = ""; (numericUpDown3.Value> elite.Count/2) = elite.Count/2; kol = (int) numericUpDown3.Value;
summelite = 0; (int i = 0; i
(int j = 0; j
{= 0; (int i = 0; i
{(i! = 0) (ClRet1 (elite [min]. Diagonal) + ClRet2 (elite [min]. Resp_time) + (elite [min]. Angle) + ClRet4 (elite [min ]. Resolution)> (elite [i]. Diagonal) + ClRet2 (elite [i]. Resp_time) + (elite [i]. Angle) + ClRet4 (elite [i]. Resolution)) = i;
} + = elite [min]. Diagonal + "" + elite [min]. Resp_time + "" + [min]. Angle + "" + elite [min] . Resolution + " n";. RemoveAt (min);
= elite [rnd.Next (0, elite.Count - 1)];
= list [rnd.Next (0, list.Count - 1)];
(ClRet1 (can.Diagonal)> = ClRet1 (rec.Diagonal)