- Timestamp:
- 09/07/10 17:24:00 (14 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba
- Files:
-
- 9 added
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Creators/AlbaCreator.cs
r4362 r4369 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 using HeuristicLab.Problems.VehicleRouting.Interfaces; 28 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 28 29 29 30 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { 30 31 [Item("AlbaCreator", "A VRP creator.")] 31 32 [StorableClass] 32 public abstract class AlbaCreator : AlbaOperator, IVRPCreator {33 public abstract class AlbaCreator : VRPCreator, IAlbaOperator, IVRPCreator { 33 34 public override bool CanChangeName { 34 35 get { return false; } 35 }36 37 #region IVRPCreator Members38 public ILookupParameter<IVRPEncoding> VRPToursParameter {39 get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPTours"]; }40 36 } 41 37 … … 45 41 public AlbaCreator() 46 42 : base() { 47 Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The new VRP tours."));48 43 } 49 50 #endregion51 44 } 52 45 } -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Crossovers/AlbaCrossover.cs
r4365 r4369 27 27 using HeuristicLab.Optimization; 28 28 using HeuristicLab.Problems.VehicleRouting.Interfaces; 29 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 29 30 30 31 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { 31 32 [Item("AlbaCrossover", "An operator which crosses two VRP representations.")] 32 33 [StorableClass] 33 public abstract class AlbaCrossover : AlbaOperator, IVRPCrossover, IStochasticOperator {34 public abstract class AlbaCrossover : VRPCrossover, IAlbaOperator, IVRPCrossover, IStochasticOperator { 34 35 public ILookupParameter<IRandom> RandomParameter { 35 36 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 36 }37 38 public ILookupParameter<ItemArray<IVRPEncoding>> ParentsParameter {39 get { return (ScopeTreeLookupParameter<IVRPEncoding>)Parameters["Parents"]; }40 }41 42 public ILookupParameter<IVRPEncoding> ChildParameter {43 get { return (ILookupParameter<IVRPEncoding>)Parameters["Child"]; }44 37 } 45 38 … … 51 44 : base() { 52 45 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 53 54 Parameters.Add(new ScopeTreeLookupParameter<IVRPEncoding>("Parents", "The parent permutations which should be crossed."));55 ParentsParameter.ActualName = "VRPTours";56 Parameters.Add(new LookupParameter<IVRPEncoding>("Child", "The child permutation resulting from the crossover."));57 ChildParameter.ActualName = "VRPTours";58 46 } 59 47 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/IAlbaOperator.cs
r4365 r4369 32 32 33 33 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { 34 [Item("AlbaOperator", "Represents a VRP operator.")] 35 [StorableClass] 36 public abstract class AlbaOperator : VRPOperator, 34 public interface IAlbaOperator: 37 35 ISingleDepotOperator, IHeterogenousCapacitatedOperator, ITimeWindowedOperator { 38 [StorableConstructor]39 protected AlbaOperator(bool deserializing) : base(deserializing) { }40 41 public AlbaOperator()42 : base() {43 }44 36 } 45 37 } -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Manipulators/AlbaManipulator.cs
r4365 r4369 27 27 using HeuristicLab.Optimization; 28 28 using HeuristicLab.Problems.VehicleRouting.Interfaces; 29 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 29 30 30 31 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { 31 32 [Item("AlbaManipulator", "An operator which manipulates a VRP representation.")] 32 33 [StorableClass] 33 public abstract class AlbaManipulator : AlbaOperator, IVRPManipulator, IStochasticOperator {34 public abstract class AlbaManipulator : VRPManipulator, IAlbaOperator, IVRPManipulator, IStochasticOperator { 34 35 public ILookupParameter<IRandom> RandomParameter { 35 36 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 36 }37 38 public ILookupParameter<IVRPEncoding> VRPToursParameter {39 get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPTours"]; }40 37 } 41 38 … … 46 43 : base() { 47 44 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 48 Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The VRP tours to be manipulated."));49 45 } 50 46
Note: See TracChangeset
for help on using the changeset viewer.