Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/05/12 10:55:39 (12 years ago)
Author:
svonolfe
Message:

Improved incremental evaluation (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPTWEvaluator.cs

    r6883 r7276  
    5454      TourInsertionInfo tourInfo = new TourInsertionInfo(solution.GetVehicleAssignment(solution.GetTourIndex(tour)));
    5555      eval.InsertionInfo.AddTourInsertionInfo(tourInfo);
     56      double originalQuality = eval.Quality;
    5657     
    5758      IHomogenousCapacitatedProblemInstance cvrpInstance = instance as IHomogenousCapacitatedProblemInstance;
     
    151152      eval.Quality += time * vrptw.TimeFactor.Value;
    152153      tourInfo.Penalty = tourPenalty;
     154      tourInfo.Quality = eval.Quality - originalQuality;
    153155    }
    154156
Note: See TracChangeset for help on using the changeset viewer.