Changeset 12102 for trunk/sources/HeuristicLab.Problems.VehicleRouting
- Timestamp:
- 03/02/15 16:11:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs
r12087 r12102 29 29 using HeuristicLab.Data; 30 30 using HeuristicLab.Optimization; 31 using HeuristicLab.Optimization.Operators; 31 32 using HeuristicLab.Parameters; 32 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 253 254 ApplicationManager.Manager.GetInstances<IGeneralVRPOperator>().Cast<IOperator>()).OrderBy(op => op.Name)); 254 255 Operators.Add(new VRPSimilarityCalculator()); 256 Operators.Add(new QualitySimilarityCalculator()); 257 Operators.Add(new NoSimilarityCalculator()); 255 258 Operators.Add(new PopulationSimilarityAnalyzer(Operators.OfType<ISolutionSimilarityCalculator>())); 256 259 … … 284 287 op.ParentsParameter.Hidden = true; 285 288 } 286 foreach ( VRPSimilarityCalculator op in Operators.OfType<VRPSimilarityCalculator>()) {289 foreach (ISolutionSimilarityCalculator op in Operators.OfType<ISolutionSimilarityCalculator>()) { 287 290 op.SolutionVariableName = SolutionCreator.VRPToursParameter.ActualName; 288 291 op.QualityVariableName = ProblemInstance.SolutionEvaluator.QualityParameter.ActualName; 289 op.ProblemInstance = ProblemInstance; 292 var calc = op as VRPSimilarityCalculator; 293 if (calc != null) calc.ProblemInstance = ProblemInstance; 290 294 } 291 295 }
Note: See TracChangeset
for help on using the changeset viewer.