Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/27/10 16:00:18 (14 years ago)
Author:
svonolfe
Message:

Improved VRP evaluation (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP
Files:
2 edited

Legend:

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

    r4378 r4520  
    9393    }
    9494
    95     protected override void UpdateResultParameters(VRPEvaluation tourEvaluation) {
    96       base.UpdateResultParameters(tourEvaluation);
     95    protected override void SetResultParameters(VRPEvaluation tourEvaluation) {
     96      base.SetResultParameters(tourEvaluation);
    9797
    98       OverloadParameter.ActualValue.Value += (tourEvaluation as CVRPEvaluation).Overload;
     98      OverloadParameter.ActualValue.Value = (tourEvaluation as CVRPEvaluation).Overload;
    9999    }
    100100   
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPTWEvaluator.cs

    r4378 r4520  
    130130    }
    131131
    132     protected override void UpdateResultParameters(VRPEvaluation tourEvaluation) {
    133       base.UpdateResultParameters(tourEvaluation);
     132    protected override void SetResultParameters(VRPEvaluation tourEvaluation) {
     133      base.SetResultParameters(tourEvaluation);
    134134
    135       TardinessParameter.ActualValue.Value += (tourEvaluation as CVRPTWEvaluation).Tardiness;
    136       TravelTimeParameter.ActualValue.Value += (tourEvaluation as CVRPTWEvaluation).TravelTime;
     135      TardinessParameter.ActualValue.Value = (tourEvaluation as CVRPTWEvaluation).Tardiness;
     136      TravelTimeParameter.ActualValue.Value = (tourEvaluation as CVRPTWEvaluation).TravelTime;
    137137    }
    138138   
Note: See TracChangeset for help on using the changeset viewer.