Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/31/10 14:03:12 (14 years ago)
Author:
svonolfe
Message:

Renamed operators, added comments according to code review (#1039)

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/IntraRouteInversion/AlbaExhaustiveIntraRouteInversionMoveGenerator.cs

    r4341 r4346  
    2929
    3030namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba {
    31   [Item("ExhaustiveIntraRouteInversionGenerator", "Generates all possible intra route inversion moves from a given VRP encoding.")]
     31  [Item("AlbaExhaustiveIntraRouteInversionGenerator", "Generates all possible intra route inversion moves from a given VRP encoding.  It is implemented as described in Alba, E. and Dorronsoro, B. (2004). Solving the Vehicle Routing Problem by Using Cellular Genetic Algorithms.")]
    3232  [StorableClass]
    33   public sealed class ExhaustiveIntraRouteInversionGenerator : IntraRouteInversionMoveGenerator, IExhaustiveMoveGenerator, IAlbaIntraRouteInversionMoveOperator {
     33  public sealed class AlbaExhaustiveIntraRouteInversionGenerator : AlbaIntraRouteInversionMoveGenerator, IExhaustiveMoveGenerator, IAlbaIntraRouteInversionMoveOperator {
    3434    [StorableConstructor]
    35     private ExhaustiveIntraRouteInversionGenerator(bool deserializing) : base(deserializing) { }
     35    private AlbaExhaustiveIntraRouteInversionGenerator(bool deserializing) : base(deserializing) { }
    3636
    37     public ExhaustiveIntraRouteInversionGenerator()
     37    public AlbaExhaustiveIntraRouteInversionGenerator()
    3838      : base() {
    3939    }
    4040
    41     protected override IntraRouteInversionMove[] GenerateMoves(AlbaEncoding individual) {
    42       List<IntraRouteInversionMove> moves = new List<IntraRouteInversionMove>();
     41    protected override AlbaIntraRouteInversionMove[] GenerateMoves(AlbaEncoding individual) {
     42      List<AlbaIntraRouteInversionMove> moves = new List<AlbaIntraRouteInversionMove>();
    4343
    4444      int currentTourStart = 0;
     
    5555          for (int i = 0; i <= tourLength - 4; i++ ) {
    5656            for (int j = i + 2; j <= tourLength - 2; j++) {
    57               IntraRouteInversionMove move = new IntraRouteInversionMove(
     57              AlbaIntraRouteInversionMove move = new AlbaIntraRouteInversionMove(
    5858                currentTourStart + i,
    5959                currentTourStart + j,
Note: See TracChangeset for help on using the changeset viewer.