Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/27/11 13:29:56 (13 years ago)
Author:
svonolfe
Message:

Updated interface of evaluator - added individual (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDRearrange/PotvinPDRearrangeMoveMaker.cs

    r6806 r6838  
    6161    public static void InsertPair(PotvinEncoding solution, Tour tour, int source, int target, IVRPProblemInstance problemInstance, int positionToAvoid = -1, int positionToAvoid2 = -1) {
    6262      int stops = tour.Stops.Count;
    63       VRPEvaluation eval = problemInstance.Evaluate(tour);
     63      VRPEvaluation eval = problemInstance.EvaluateTour(tour, solution);
    6464      double minCosts = double.MaxValue;
    6565      int sourceLocation = -1;
     
    6868      for (int i = 0; i <= stops; i++) {
    6969        tour.Stops.Insert(i, source);
    70         VRPEvaluation tourEval = problemInstance.Evaluate(tour);
     70        VRPEvaluation tourEval = problemInstance.EvaluateTour(tour, solution);
    7171        double sourceCosts = tourEval.Quality - eval.Quality;
    7272
Note: See TracChangeset for help on using the changeset viewer.