/// <summary> /// Determines if solution is better than other solution /// </summary> /// <param name="otherHarmony">Other solution</param> /// <returns>If solution is better</returns> public bool IsBetterThan(Harmony <T> otherHarmony) { return(ObjectiveValue < otherHarmony.ObjectiveValue); }
/// <summary> /// Compares this to other solution by their values /// </summary> /// <param name="otherHarmony">Other solution</param> /// <returns>Comparison result</returns> public int CompareTo(Harmony <T> otherHarmony) { return(ObjectiveValue.CompareTo(otherHarmony.ObjectiveValue)); }