Changeset 11302
- Timestamp:
- 08/26/14 12:57:50 (10 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.VariableNeighborhoodSearch/3.3/VariableNeighborhoodSearch.cs
r11300 r11302 293 293 } 294 294 private void InitializeLocalImprovementOperators() { 295 if (Problem == null) { 296 LocalImprovementParameter.ValidValues.Clear(); 297 } else { 298 foreach (var algOp in LocalImprovementParameter.ValidValues.OfType<ILocalImprovementAlgorithmOperator>()) { 299 if (!algOp.ProblemType.IsInstanceOfType(Problem)) { 300 LocalImprovementParameter.ValidValues.Remove(algOp); 301 } 302 } 295 LocalImprovementParameter.ValidValues.Clear(); 296 if (Problem != null) { 303 297 // Regular ILocalImprovementOperators queried from Problem 304 298 foreach (var op in Problem.Operators.OfType<ILocalImprovementOperator>().Where(x => !(x is ILocalImprovementAlgorithmOperator))) { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs
r11285 r11302 33 33 using HeuristicLab.PluginInfrastructure; 34 34 using HeuristicLab.Problems.Instances; 35 using HeuristicLab.Problems.VehicleRouting.Encodings.Alba; 35 36 using HeuristicLab.Problems.VehicleRouting.Interfaces; 36 37 using HeuristicLab.Problems.VehicleRouting.Interpreters; … … 263 264 defaultCreator = creator; 264 265 } 266 Operators.Add(new AlbaLambdaInterchangeLocalImprovementOperator()); 265 267 if (defaultCreator != null) 266 268 solutionCreatorParameter.Value = defaultCreator;
Note: See TracChangeset
for help on using the changeset viewer.