Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/10/10 13:00:54 (14 years ago)
Author:
svonolfe
Message:

Improved performance of PotvinEncoding(#1177)

File:
1 edited

Legend:

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

    r4377 r4378  
    7373      eval.Quality += instance.DistanceFactor.Value * distance;
    7474
    75       eval.Distance = distance;
    76       eval.VehicleUtilization = 1;
     75      eval.Distance += distance;
     76      eval.VehicleUtilization += 1;
    7777
    7878      double capacity = cvrpInstance.Capacity.Value;
     
    8181      }
    8282
    83       (eval as CVRPEvaluation).Overload = overweight;
     83      (eval as CVRPEvaluation).Overload += overweight;
    8484      double penalty = overweight * cvrpInstance.OverloadPenalty.Value;
    8585      eval.Penalty += penalty;
Note: See TracChangeset for help on using the changeset viewer.