Exemple #1
0
        private bool OnIterationComplete(GeneScore score, int iterationCount, int iterationsRemaining)
        {
            if (IterationComplete != null)
            {
                var args = new IterationCompleteEventArgs(score, iterationCount, iterationsRemaining);
                IterationComplete(this, args);

                return(args.Stop);
            }

            return(false);
        }
Exemple #2
0
 public IterationCompleteEventArgs(GeneScore score, int iterationNumber, int iterationsRemaining)
 {
     _score               = score;
     _iterationNumber     = iterationNumber;
     _iterationsRemaining = iterationsRemaining;
 }