Changeset 7793
- Timestamp:
- 05/10/12 18:05:40 (13 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 6 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Optimization.Operators/3.3/SimilarityCalculator.cs
r7789 r7793 65 65 66 66 if (left == right) return 0; 67 else return Calculate Diversity(left, right);67 else return CalculateSimilarity(left, right); 68 68 } 69 69 70 protected abstract double Calculate Diversity(IScope left, IScope right);70 protected abstract double CalculateSimilarity(IScope left, IScope right); 71 71 } 72 72 } -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.Knapsack/3.3/SimilarityCalculators/KnapsackSimilarityCalculator.cs
r7789 r7793 42 42 } 43 43 44 protected override double Calculate Diversity(IScope left, IScope right) {44 protected override double CalculateSimilarity(IScope left, IScope right) { 45 45 BinaryVector sol1 = left.Variables[TargetParameter.ActualName].Value as BinaryVector; 46 46 BinaryVector sol2 = right.Variables[TargetParameter.ActualName].Value as BinaryVector; -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.TestFunctions/3.3/SimilarityCalculators/SingleObjectiveTestFunctionSimilarityCalculator.cs
r7789 r7793 63 63 } 64 64 65 protected override double Calculate Diversity(IScope left, IScope right) {65 protected override double CalculateSimilarity(IScope left, IScope right) { 66 66 RealVector sol1 = left.Variables["Point"].Value as RealVector; 67 67 RealVector sol2 = right.Variables["Point"].Value as RealVector; -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.TravelingSalesman/3.3/SimilarityCalculators/TSPSimilarityCalculator.cs
r7789 r7793 42 42 } 43 43 44 protected override double Calculate Diversity(IScope left, IScope right) {44 protected override double CalculateSimilarity(IScope left, IScope right) { 45 45 Permutation v1 = left.Variables[TargetParameter.ActualName].Value as Permutation; 46 46 Permutation v2 = right.Variables[TargetParameter.ActualName].Value as Permutation; -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.3/HeuristicLab.Problems.VehicleRouting-3.3.csproj
r6866 r7793 119 119 <Compile Include="Encodings\Potvin\Crossovers\PotvinInsertionBasedCrossover.cs" /> 120 120 <Compile Include="Encodings\Potvin\Manipulators\PotvinLocalSearchManipulator.cs" /> 121 <Compile Include="Improvers\VRPImprovementOperator.cs" /> 121 122 <Compile Include="Interfaces\IVRPMultiNeighborhoodShakingOperator.cs" /> 123 <Compile Include="PathRelinkers\VRPPathRelinker.cs" /> 122 124 <Compile Include="Plugin.cs" /> 123 125 <Compile Include="ShakingOperators\VehicleRoutingShakingOperator.cs" /> 126 <Compile Include="SimilarityCalculators\VRPSimilarityCalculator.cs" /> 124 127 <Compile Include="SolutionParser.cs" /> 125 128 <Compile Include="Encodings\Alba\Crossovers\AlbaPermutationCrossover.cs" /> -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs
r7351 r7793 27 27 using HeuristicLab.Data; 28 28 using HeuristicLab.Optimization; 29 using HeuristicLab.Optimization.Operators; 29 30 using HeuristicLab.Parameters; 30 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 411 412 412 413 private void InitializeOperators() { 414 Operators.Add(new VRPImprovementOperator()); 415 Operators.Add(new VRPPathRelinker()); 416 Operators.Add(new VRPSimilarityCalculator()); 417 413 418 Operators.Add(new BestVRPSolutionAnalyzer()); 414 419 Operators.Add(new BestAverageWorstVRPToursAnalyzer()); … … 518 523 op.VRPToursParameter.ActualName = SolutionCreator.VRPToursParameter.ActualName; 519 524 } 525 foreach (IImprovementOperator op in Operators.OfType<IImprovementOperator>()) { 526 op.TargetParameter.ActualName = SolutionCreator.VRPToursParameter.ActualName; 527 op.TargetParameter.Hidden = true; 528 } 529 foreach (IPathRelinker op in Operators.OfType<IPathRelinker>()) { 530 op.ParentsParameter.ActualName = SolutionCreator.VRPToursParameter.ActualName; 531 op.ParentsParameter.Hidden = true; 532 } 533 foreach (ISimilarityCalculator op in Operators.OfType<ISimilarityCalculator>()) { 534 op.TargetParameter.ActualName = SolutionCreator.VRPToursParameter.ActualName; 535 op.TargetParameter.Hidden = true; 536 } 520 537 } 521 538 private void ClearDistanceMatrix() {
Note: See TracChangeset
for help on using the changeset viewer.