Пример #1
0
 protected void OnSolutionUpdated(BaseSolution <T> solution, int step)
 {
     if (SolutionUpdated != null)
     {
         SolutionUpdated(solution, step);
     }
 }
Пример #2
0
 protected void OnStepped(BaseSolution <T> solution, int step)
 {
     if (Stepped != null)
     {
         Stepped(solution, step);
     }
 }
Пример #3
0
 public virtual double GetDistanceSq2(BaseSolution <T> rhs)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public bool IsBetterThan(BaseSolution <T> rhs)
 {
     return(mCost < rhs.Cost);
 }
Пример #5
0
 public virtual double GetDistance2(BaseSolution <T> rhs)
 {
     return(System.Math.Sqrt(GetDistanceSq2(rhs)));
 }