- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/branches/CloningRefactoring/HeuristicLab.Problems.VehicleRouting (added) merged: 4686-4687,4689-4693,4696-4697
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Moves/Interfaces/IMultiVRPMoveGenerator.cs
r4205 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Core;23 using HeuristicLab.Encodings.PermutationEncoding;24 22 using HeuristicLab.Optimization; 25 23 -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Moves/Interfaces/IMultiVRPMoveOperator.cs
r4205 r4722 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 using HeuristicLab.Optimization;25 23 26 24 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Moves/Interfaces/IVRPMove.cs
r4352 r4722 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 using HeuristicLab.Optimization;25 23 using HeuristicLab.Data; 26 24 -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveEvaluator.cs
r4352 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 24 using HeuristicLab.Parameters; 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 36 36 [StorableConstructor] 37 37 private MultiVRPMoveEvaluator(bool deserializing) : base(deserializing) { } 38 private MultiVRPMoveEvaluator(MultiVRPMoveEvaluator original, Cloner cloner) : base(original, cloner) { } 39 public override IDeepCloneable Clone(Cloner cloner) { 40 return new MultiVRPMoveEvaluator(this, cloner); 41 } 38 42 39 43 public MultiVRPMoveEvaluator() 40 44 : base() { 41 45 Parameters.Add(new LookupParameter<IVRPMove>("VRPMove", "The generated moves.")); 42 46 } 43 47 … … 53 57 CapacityParameter.ActualValue, 54 58 CoordinatesParameter.ActualValue, 55 FleetUsageFactor.ActualValue, 56 TimeFactor.ActualValue, 57 DistanceFactor.ActualValue, 58 OverloadPenalty.ActualValue, 59 FleetUsageFactor.ActualValue, 60 TimeFactor.ActualValue, 61 DistanceFactor.ActualValue, 62 OverloadPenalty.ActualValue, 59 63 TardinessPenalty.ActualValue, 60 64 DistanceMatrixParameter, -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveGenerator.cs
r4352 r4722 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using HeuristicLab.Collections; 26 using HeuristicLab.Common; 25 27 using HeuristicLab.Core; 28 using HeuristicLab.Data; 26 29 using HeuristicLab.Operators; 27 30 using HeuristicLab.Optimization; … … 29 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 33 using HeuristicLab.PluginInfrastructure; 31 using HeuristicLab.Data;32 using System.Collections.Generic;33 34 34 35 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { 35 36 [Item("MultiVRPMoveGenerator", "Randomly selects and applies its move generators.")] 36 37 [StorableClass] 37 public class MultiVRPMoveGenerator : CheckedMultiOperator<IMultiVRPMoveGenerator>, IMultiVRPMoveOperator, 38 public class MultiVRPMoveGenerator : CheckedMultiOperator<IMultiVRPMoveGenerator>, IMultiVRPMoveOperator, 38 39 IStochasticOperator, IMultiMoveGenerator { 39 40 public override bool CanChangeName { … … 97 98 98 99 [StorableConstructor] 99 private MultiVRPMoveGenerator(bool deserializing) : base(deserializing) { } 100 protected MultiVRPMoveGenerator(bool deserializing) : base(deserializing) { } 101 protected MultiVRPMoveGenerator(MultiVRPMoveGenerator original, Cloner cloner) : base(original, cloner) { } 102 public override IDeepCloneable Clone(Cloner cloner) { 103 return new MultiVRPMoveGenerator(this, cloner); 104 } 100 105 public MultiVRPMoveGenerator() 101 106 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveMaker.cs
r4416 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Data; 24 using HeuristicLab.Operators;25 25 using HeuristicLab.Optimization; 26 26 using HeuristicLab.Parameters; 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using System.Collections.Generic;29 28 30 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { 31 30 [Item("MultiVRPMoveMaker", "Peforms multiple moves on a given VRP encoding and updates the quality.")] 32 31 [StorableClass] … … 81 80 82 81 [StorableConstructor] 83 private LambdaInterchangeMoveMaker(bool deserializing) : base(deserializing) { } 82 protected LambdaInterchangeMoveMaker(bool deserializing) : base(deserializing) { } 83 protected LambdaInterchangeMoveMaker(LambdaInterchangeMoveMaker original, Cloner cloner) : base(original, cloner) { } 84 public override IDeepCloneable Clone(Cloner cloner) { 85 return new LambdaInterchangeMoveMaker(this, cloner); 86 } 84 87 85 88 public LambdaInterchangeMoveMaker() … … 112 115 DoubleValue moveQuality = MoveQualityParameter.ActualValue; 113 116 DoubleValue quality = QualityParameter.ActualValue; 114 117 115 118 //perform move 116 119 VRPToursParameter.ActualValue = move.MakeMove();
Note: See TracChangeset
for help on using the changeset viewer.