Example #1
0
        /// <summary>
        /// Returns -1 if I am BETTER in some way than the other Individual, 1 if the other Individual is BETTER than me,
        /// and 0 if we are equivalent.  The default implementation assumes BETTER means FITTER, by simply calling
        /// CompareTo on the fitnesses themselves
        /// </summary>
        public int CompareTo(object o)
        {
            var other = (Individual)o;

            return(Fitness.CompareTo(other.Fitness));
        }