Пример #1
0
        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);
        }
Пример #2
0
 /// <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);
 }