示例#1
0
 /// <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);
 }
示例#2
0
 /// <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));
 }