Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/07/10 17:24:00 (14 years ago)
Author:
svonolfe
Message:

Added move operators (WIP) (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Crossovers/AlbaCrossover.cs

    r4365 r4369  
    2727using HeuristicLab.Optimization;
    2828using HeuristicLab.Problems.VehicleRouting.Interfaces;
     29using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    2930
    3031namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba {
    3132  [Item("AlbaCrossover", "An operator which crosses two VRP representations.")]
    3233  [StorableClass]
    33   public abstract class AlbaCrossover : AlbaOperator, IVRPCrossover, IStochasticOperator {
     34  public abstract class AlbaCrossover : VRPCrossover, IAlbaOperator, IVRPCrossover, IStochasticOperator {
    3435    public ILookupParameter<IRandom> RandomParameter {
    3536      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"]; }
    4437    }
    4538   
     
    5144      : base() {
    5245      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";
    5846    }
    5947
Note: See TracChangeset for help on using the changeset viewer.