Changeset 4369 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Crossovers/AlbaCrossover.cs
- Timestamp:
- 09/07/10 17:24:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.