Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/28/11 14:16:21 (13 years ago)
Author:
svonolfe
Message:

Merged changes from trunk (#1561) into branch (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Creators/IterativeInsertionCreator.cs

    r5127 r6607  
    8383    private static PotvinEncoding CreateSolution(IVRPProblemInstance instance, IRandom random, bool adhereTimeWindows) {
    8484      PotvinEncoding result = new PotvinEncoding(instance);
    85       IVRPEvaluator eval = instance.EvaluatorParameter.Value;
    8685
    8786      List<int> customers = new List<int>();
     
    105104        currentTour.Stops.Insert(stopIdx, customers[index]);
    106105
    107         CVRPEvaluation evaluation = eval.Evaluate(instance, currentTour) as CVRPEvaluation;
     106        CVRPEvaluation evaluation = instance.Evaluate(currentTour) as CVRPEvaluation;
    108107        if (result.Tours.Count < instance.Vehicles.Value &&
    109           ((adhereTimeWindows && !eval.Feasible(evaluation)) || ((!adhereTimeWindows) && evaluation.Overload > double.Epsilon))) {
     108          ((adhereTimeWindows && !instance.Feasible(evaluation)) || ((!adhereTimeWindows) && evaluation.Overload > double.Epsilon))) {
    110109          currentTour.Stops.RemoveAt(stopIdx);
    111110
Note: See TracChangeset for help on using the changeset viewer.