Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10926 for trunk


Ignore:
Timestamp:
06/03/14 14:50:48 (10 years ago)
Author:
pfleck
Message:

#2190:
When setting the available operators for the MultiVRPMoveGenerator the AlbaOperators and the PotvinVehicleAssignmentMultiMoveGenerator are unchecked by default.
The AlbaOperators doesn't work with a TabuSearch as they do not specify a TabuChecker.
The PotvinVehicleAssignmentMultiMoveGenerator only makes sense for VRP instances where the Vehicles have different capacities and otherwise results in an empty neighborhood very quickly and the TabuSearch will stop although other Moves from the MultiMoveGenerator were possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveGenerator.cs

    r10295 r10926  
    3131using HeuristicLab.Parameters;
    3232using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     33using HeuristicLab.Problems.VehicleRouting.Encodings.Alba;
     34using HeuristicLab.Problems.VehicleRouting.Encodings.Potvin;
    3335using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3436using HeuristicLab.Problems.VehicleRouting.Variants;
     
    99101      foreach (IOperator op in operators) {
    100102        if (op is IMultiVRPMoveGenerator && !(op is MultiOperator<IMultiVRPMoveGenerator>)) {
    101           Operators.Add(op.Clone() as IMultiVRPMoveGenerator, true);
     103          Operators.Add(op.Clone() as IMultiVRPMoveGenerator, !(op is IAlbaOperator || op is PotvinVehicleAssignmentMultiMoveGenerator));
    102104        }
    103105      }
Note: See TracChangeset for help on using the changeset viewer.