- Timestamp:
- 03/29/10 18:49:55 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators
- Files:
-
- 8 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/ThreeOpt/TSPTranslocationMoveEuclideanPathEvaluator.cs
r3229 r3232 26 26 namespace HeuristicLab.Problems.TravelingSalesman { 27 27 /// <summary> 28 /// An operator to evaluate 3-opt moves.28 /// An operator to evaluate translocation or insertion moves (3-opt). 29 29 /// </summary> 30 [Item("TSPT hreeOptEuclideanPathMoveEvaluator", "Operator for evaluating a 3-opt movebased on euclidean distances.")]30 [Item("TSPTranslocationMoveEuclideanPathEvaluator", "Operator for evaluating a translocation or insertion move (3-opt) based on euclidean distances.")] 31 31 [StorableClass] 32 public class TSPT hreeOptEuclideanPathMoveEvaluator : TSPThreeOptPathMoveEvaluator {32 public class TSPTranslocationMoveEuclideanPathEvaluator : TSPTranslocationMovePathEvaluator { 33 33 public override Type EvaluatorType { 34 34 get { return typeof(TSPEuclideanPathEvaluator); } -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/ThreeOpt/TSPTranslocationMoveGeoPathEvaluator.cs
r3229 r3232 26 26 namespace HeuristicLab.Problems.TravelingSalesman { 27 27 /// <summary> 28 /// An operator to evaluate 3-opt moves.28 /// An operator to evaluate translocation or insertion moves (3-opt). 29 29 /// </summary> 30 [Item("TSPT hreeOptGeoPathMoveEvaluator", "Operator for evaluating a 3-opt movebased on geo (world) distances.")]30 [Item("TSPTranslocationMoveGeoPathEvaluator", "Operator for evaluating a translocation or insertion move (3-opt) based on geo (world) distances.")] 31 31 [StorableClass] 32 public class TSPT hreeOptGeoPathMoveEvaluator : TSPThreeOptPathMoveEvaluator {32 public class TSPTranslocationMoveGeoPathEvaluator : TSPTranslocationMovePathEvaluator { 33 33 public override Type EvaluatorType { 34 34 get { return typeof(TSPGeoPathEvaluator); } -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/ThreeOpt/TSPTranslocationMovePathEvaluator.cs
r3229 r3232 30 30 namespace HeuristicLab.Problems.TravelingSalesman { 31 31 /// <summary> 32 /// An operator to evaluate 3-opt moves.32 /// An operator to evaluate a translocation or insertion move. 33 33 /// </summary> 34 [Item("TSPT hreeOptPathMoveEvaluator", "Evaluates a 3-opt moveby summing up the length of all added edges and subtracting the length of all deleted edges.")]34 [Item("TSPTranslocationMovePathEvaluator", "Evaluates a translocation or insertion move (3-opt) by summing up the length of all added edges and subtracting the length of all deleted edges.")] 35 35 [StorableClass] 36 public abstract class TSPT hreeOptPathMoveEvaluator : TSPPathMoveEvaluator, IThreeOptPermutationMoveOperator {37 public ILookupParameter<T hreeOptMove> ThreeOptMoveParameter {38 get { return (ILookupParameter<T hreeOptMove>)Parameters["ThreeOptMove"]; }36 public abstract class TSPTranslocationMovePathEvaluator : TSPPathMoveEvaluator, IPermutationTranslocationMoveOperator { 37 public ILookupParameter<TranslocationMove> TranslocationMoveParameter { 38 get { return (ILookupParameter<TranslocationMove>)Parameters["TranslocationMove"]; } 39 39 } 40 40 41 public TSPT hreeOptPathMoveEvaluator()41 public TSPTranslocationMovePathEvaluator() 42 42 : base() { 43 Parameters.Add(new LookupParameter<T hreeOptMove>("ThreeOptMove", "The move to evaluate."));43 Parameters.Add(new LookupParameter<TranslocationMove>("TranslocationMove", "The move to evaluate.")); 44 44 } 45 45 46 46 protected override double EvaluateByCoordinates(Permutation permutation, DoubleMatrix coordinates) { 47 T hreeOptMove move = ThreeOptMoveParameter.ActualValue;47 TranslocationMove move = TranslocationMoveParameter.ActualValue; 48 48 int edge1source = permutation.GetCircular(move.Index1 - 1); 49 49 int edge1target = permutation[move.Index1]; … … 81 81 82 82 protected override double EvaluateByDistanceMatrix(Permutation permutation, DoubleMatrix distanceMatrix) { 83 T hreeOptMove move = ThreeOptMoveParameter.ActualValue;83 TranslocationMove move = TranslocationMoveParameter.ActualValue; 84 84 int edge1source = permutation.GetCircular(move.Index1 - 1); 85 85 int edge1target = permutation[move.Index1]; -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/ThreeOpt/TSPTranslocationMoveRoundedEuclideanPathEvaluator.cs
r3229 r3232 26 26 namespace HeuristicLab.Problems.TravelingSalesman { 27 27 /// <summary> 28 /// An operator to evaluate 3-opt moves.28 /// An operator to evaluate translocation or insertion moves (3-opt). 29 29 /// </summary> 30 [Item("TSPT hreeOptRoundedEuclideanPathMoveEvaluator", "Operator for evaluating a 3-opt movebased on rounded euclidean distances.")]30 [Item("TSPTranslocationMoveRoundedEuclideanPathEvaluator", "Operator for evaluating a translocation or insertion move (3-opt) based on rounded euclidean distances.")] 31 31 [StorableClass] 32 public class TSPT hreeOptRoundedEuclideanPathMoveEvaluator : TSPThreeOptPathMoveEvaluator {32 public class TSPTranslocationMoveRoundedEuclideanPathEvaluator : TSPTranslocationMovePathEvaluator { 33 33 public override Type EvaluatorType { 34 34 get { return typeof(TSPRoundedEuclideanPathEvaluator); } -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/TwoOpt/TSPInversionMoveEuclideanPathEvaluator.cs
r3229 r3232 28 28 /// An operator to evaluate 2-opt moves. 29 29 /// </summary> 30 [Item("TSP TwoOptEuclideanPathMoveEvaluator", "Operator for evaluating a 2-opt movebased on euclidean distances.")]30 [Item("TSPInversionMoveEuclideanPathEvaluator", "Operator for evaluating an inversion move (2-opt) based on euclidean distances.")] 31 31 [StorableClass] 32 public class TSP TwoOptEuclideanPathMoveEvaluator : TSPTwoOptPathMoveEvaluator {32 public class TSPInversionMoveEuclideanPathEvaluator : TSPInversionMovePathEvaluator { 33 33 public override Type EvaluatorType { 34 34 get { return typeof(TSPEuclideanPathEvaluator); } -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/TwoOpt/TSPInversionMoveGeoPathEvaluator.cs
r3229 r3232 26 26 namespace HeuristicLab.Problems.TravelingSalesman { 27 27 /// <summary> 28 /// An operator to evaluate 2-opt moves.28 /// An operator to evaluate inversion moves (2-opt). 29 29 /// </summary> 30 [Item("TSP TwoOptGeoPathMoveEvaluator", "Operator for evaluating a 2-opt movebased on geo (world) distances.")]30 [Item("TSPInversionMoveGeoPathEvaluator", "Operator for evaluating an inversion move (2-opt) based on geo (world) distances.")] 31 31 [StorableClass] 32 public class TSP TwoOptGeoPathMoveEvaluator : TSPTwoOptPathMoveEvaluator {32 public class TSPInversionMoveGeoPathEvaluator : TSPInversionMovePathEvaluator { 33 33 public override Type EvaluatorType { 34 34 get { return typeof(TSPGeoPathEvaluator); } -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/TwoOpt/TSPInversionMovePathEvaluator.cs
r3229 r3232 30 30 namespace HeuristicLab.Problems.TravelingSalesman { 31 31 /// <summary> 32 /// An operator to evaluate 2-opt moves.32 /// An operator to evaluate inversion moves (2-opt). 33 33 /// </summary> 34 [Item("TSP TwoOptPathMoveEvaluator", "Evaluates a 2-opt moveby summing up the length of all added edges and subtracting the length of all deleted edges.")]34 [Item("TSPInversionMovePathEvaluator", "Evaluates an inversion move (2-opt) by summing up the length of all added edges and subtracting the length of all deleted edges.")] 35 35 [StorableClass] 36 public abstract class TSP TwoOptPathMoveEvaluator : TSPPathMoveEvaluator, ITwoOptPermutationMoveOperator {37 public ILookupParameter< TwoOptMove> TwoOptMoveParameter {38 get { return (ILookupParameter< TwoOptMove>)Parameters["TwoOptMove"]; }36 public abstract class TSPInversionMovePathEvaluator : TSPPathMoveEvaluator, IPermutationInversionMoveOperator { 37 public ILookupParameter<InversionMove> InversionMoveParameter { 38 get { return (ILookupParameter<InversionMove>)Parameters["InversionMove"]; } 39 39 } 40 40 41 public TSP TwoOptPathMoveEvaluator()41 public TSPInversionMovePathEvaluator() 42 42 : base() { 43 Parameters.Add(new LookupParameter< TwoOptMove>("TwoOptMove", "The move to evaluate."));43 Parameters.Add(new LookupParameter<InversionMove>("InversionMove", "The move to evaluate.")); 44 44 } 45 45 46 46 protected override double EvaluateByCoordinates(Permutation permutation, DoubleMatrix coordinates) { 47 TwoOptMove move = TwoOptMoveParameter.ActualValue;47 InversionMove move = InversionMoveParameter.ActualValue; 48 48 int edge1source = permutation.GetCircular(move.Index1 - 1); 49 49 int edge1target = permutation[move.Index1]; … … 66 66 67 67 protected override double EvaluateByDistanceMatrix(Permutation permutation, DoubleMatrix distanceMatrix) { 68 TwoOptMove move = TwoOptMoveParameter.ActualValue;68 InversionMove move = InversionMoveParameter.ActualValue; 69 69 int edge1source = permutation.GetCircular(move.Index1 - 1); 70 70 int edge1target = permutation[move.Index1]; -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/TwoOpt/TSPInversionMoveRoundedEuclideanPathEvaluator.cs
r3229 r3232 26 26 namespace HeuristicLab.Problems.TravelingSalesman { 27 27 /// <summary> 28 /// An operator to evaluate 2-opt moves.28 /// An operator to evaluate inversion moves (2-opt). 29 29 /// </summary> 30 [Item("TSP TwoOptRoundedEuclideanPathMoveEvaluator", "Operator for evaluating a 2-opt movebased on rounded euclidean distances.")]30 [Item("TSPInversionMoveRoundedEuclideanPathEvaluator", "Operator for evaluating an inversion move (2-opt) based on rounded euclidean distances.")] 31 31 [StorableClass] 32 public class TSP TwoOptRoundedEuclideanPathMoveEvaluator : TSPTwoOptPathMoveEvaluator {32 public class TSPInversionMoveRoundedEuclideanPathEvaluator : TSPInversionMovePathEvaluator { 33 33 public override Type EvaluatorType { 34 34 get { return typeof(TSPRoundedEuclideanPathEvaluator); }
Note: See TracChangeset
for help on using the changeset viewer.