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