Changeset 4047
- Timestamp:
- 07/19/10 16:50:39 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r3789 r4047 306 306 } 307 307 private void UpdateMoveEvaluators() { 308 foreach (ITSPPathMoveEvaluator op in Operators.OfType<ITSPPathMoveEvaluator>().ToList()) 309 operators.Remove(op); 308 operators.RemoveAll(x => x is ISingleObjectiveMoveEvaluator); 310 309 foreach (ITSPPathMoveEvaluator op in ApplicationManager.Manager.GetInstances<ITSPPathMoveEvaluator>()) 311 310 if (op.EvaluatorType == Evaluator.GetType()) { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveGenerator.cs
r3991 r4047 34 34 [Item("AlbaTranslocationMoveGenerator", "An operator which generates translocation moves for the alba representation.")] 35 35 [StorableClass] 36 public sealed class AlbaTranslocationMoveGenerator : AlbaMoveOperator, I PermutationTranslocationMoveOperator, IMultiMoveGenerator {36 public sealed class AlbaTranslocationMoveGenerator : AlbaMoveOperator, IAlbaTranslocationMoveOperator, IMultiMoveGenerator { 37 37 public IValueLookupParameter<TranslocationMoveGenerator> TranslocationMoveGeneratorParameter { 38 38 get { return (IValueLookupParameter<TranslocationMoveGenerator>)Parameters["TranslocationMoveGenerator"]; } -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveHardTabuCriterion.cs
r3938 r4047 34 34 [Item("AlbaTranslocationMoveHardTabuCriterion", "An operator which checks if translocation moves are tabu using a hard criterion.")] 35 35 [StorableClass] 36 public sealed class AlbaTranslocationMoveHardTabuCriterion : AlbaMoveOperator, I PermutationTranslocationMoveOperator, ITabuChecker {36 public sealed class AlbaTranslocationMoveHardTabuCriterion : AlbaMoveOperator, IAlbaTranslocationMoveOperator, ITabuChecker { 37 37 private TranslocationMoveHardTabuCriterion tabuChecker; 38 38 protected override IPermutationMoveOperator PermutationMoveOperatorParameter { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveMaker.cs
r3938 r4047 34 34 [Item("AlbaTranslocationMoveMaker", "An operator which makes translocation moves for the alba representation.")] 35 35 [StorableClass] 36 public sealed class AlbaTranslocationMoveMaker : AlbaMoveMaker, I PermutationTranslocationMoveOperator, IMoveMaker {36 public sealed class AlbaTranslocationMoveMaker : AlbaMoveMaker, IAlbaTranslocationMoveOperator, IMoveMaker { 37 37 private TranslocationMoveMaker moveMaker; 38 38 protected override IPermutationMoveOperator PermutationMoveOperatorParameter { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveSoftTabuCriterion.cs
r3938 r4047 34 34 [Item("AlbaTranslocationMoveSoftTabuCriterion", "An operator which checks if translocation moves are tabu using a soft criterion.")] 35 35 [StorableClass] 36 public sealed class AlbaTranslocationMoveSoftTabuCriterion : AlbaMoveOperator, I PermutationTranslocationMoveOperator, ITabuChecker {36 public sealed class AlbaTranslocationMoveSoftTabuCriterion : AlbaMoveOperator, IAlbaTranslocationMoveOperator, ITabuChecker { 37 37 private TranslocationMoveSoftTabuCriterion tabuChecker; 38 38 protected override IPermutationMoveOperator PermutationMoveOperatorParameter { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveTabuMaker.cs
r3938 r4047 34 34 [Item("AlbaTranslocationMoveTabuMaker", "An operator which makes translocation moves tabu for the alba representation.")] 35 35 [StorableClass] 36 public sealed class AlbaTranslocationMoveTabuMaker : AlbaMoveOperator, I PermutationTranslocationMoveOperator, ITabuMaker {36 public sealed class AlbaTranslocationMoveTabuMaker : AlbaMoveOperator, IAlbaTranslocationMoveOperator, ITabuMaker { 37 37 private TranslocationMoveTabuMaker moveTabuMaker; 38 38 protected override IPermutationMoveOperator PermutationMoveOperatorParameter { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/HeuristicLab.Problems.VehicleRouting-3.3.csproj
r3938 r4047 86 86 <Compile Include="Analyzers\BestVRPSolutionAnalyzer.cs" /> 87 87 <Compile Include="Encodings\Alba\Crossovers\AlbaPermutationCrossover.cs" /> 88 <Compile Include="Encodings\Alba\Interfaces\IAlbaTranslocationMoveOperator.cs" /> 88 89 <Compile Include="Encodings\Alba\Manipulators\AlbaPermutationManipulator.cs" /> 89 90 <Compile Include="Encodings\Alba\Creators\AlbaPushForwardInsertionCreator.cs" /> -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs
r4015 r4047 385 385 } 386 386 private void InitializeMoveGenerators() { 387 foreach ( AlbaTranslocationMoveGenerator op in Operators.OfType<AlbaTranslocationMoveGenerator>()) {387 foreach (IAlbaTranslocationMoveOperator op in Operators.OfType<IAlbaTranslocationMoveOperator>()) { 388 388 if (op is IMoveGenerator) { 389 389 op.TranslocationMoveParameter.ActualNameChanged += new EventHandler(TranslocationMoveParameter_ActualNameChanged); … … 456 456 op.TardinessPenalty.ActualName = TardinessPenalty.Name; 457 457 } 458 string translocationMove = Operators.OfType<IMoveGenerator>().OfType<I PermutationTranslocationMoveOperator>().First().TranslocationMoveParameter.ActualName;459 foreach (I PermutationTranslocationMoveOperator op in Operators.OfType<IPermutationTranslocationMoveOperator>())458 string translocationMove = Operators.OfType<IMoveGenerator>().OfType<IAlbaTranslocationMoveOperator>().First().TranslocationMoveParameter.ActualName; 459 foreach (IAlbaTranslocationMoveOperator op in Operators.OfType<IAlbaTranslocationMoveOperator>()) 460 460 op.TranslocationMoveParameter.ActualName = translocationMove; 461 461
Note: See TracChangeset
for help on using the changeset viewer.