public override void SelectCandidates(ref List <ICandidate> candidates, double fractionToKeep = double.NaN) { if (double.IsNaN(fractionToKeep)) { fractionToKeep = 0.5; } var numKeep = (int)(candidates.Count() * fractionToKeep); double alphaTarget; candidates = ParetoFunctions.FindGivenNumCandidates(candidates, numKeep, out alphaTarget, weights, optDirections); }
/// <summary> /// Selects the candidates. /// </summary> /// <param name="candidates">The candidates.</param> /// <param name="control">The control.</param> public override void SelectCandidates(ref List <ICandidate> candidates, double control = double.NaN) { candidates = ParetoFunctions.FindParetoCandidates(candidates, optDirections); }