Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/17/10 13:42:53 (14 years ago)
Author:
svonolfe
Message:

Implemented unified tabu search (WIP) (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveEvaluator.cs

    r4752 r5127  
    4444      get { return (ILookupParameter<DoubleValue>)Parameters["MoveQuality"]; }
    4545    }
     46    public ILookupParameter<DoubleValue> MovePenaltyParameter {
     47      get { return (ILookupParameter<DoubleValue>)Parameters["MovePenalty"]; }
     48    }
    4649
    4750    [StorableConstructor]
     
    5255      Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the solution."));
    5356      Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The relative quality of the move."));
     57      Parameters.Add(new LookupParameter<DoubleValue>("MovePenalty", "The penalty applied to the move."));
    5458    }
    5559
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveMaker.cs

    r4752 r5127  
    4242      get { return (ILookupParameter<DoubleValue>)Parameters["MoveQuality"]; }
    4343    }
     44    public ILookupParameter<DoubleValue> MovePenaltyParameter {
     45      get { return (ILookupParameter<DoubleValue>)Parameters["MovePenalty"]; }
     46    }
    4447
    4548    [StorableConstructor]
     
    5053      Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the solution."));
    5154      Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The relative quality of the move."));
     55      Parameters.Add(new LookupParameter<DoubleValue>("MovePenalty", "The penalty applied to the move."));
    5256    }
    5357
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/TourEncoding.cs

    r4899 r5127  
    3939    #region IVRPEncoding Members
    4040    public virtual List<Tour> GetTours() {
    41       List<Tour> result = new List<Tour>(Tours);
     41      List<Tour> result = new List<Tour>();
     42
     43      foreach(Tour tour in Tours) {
     44        if (tour.Stops.Count > 0)
     45          result.Add(tour);
     46      }
    4247
    4348     while (result.Count > ProblemInstance.Vehicles.Value) {
Note: See TracChangeset for help on using the changeset viewer.