Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/09/10 09:55:31 (14 years ago)
Author:
svonolfe
Message:

Merged relevant changes from the trunk into the branch (cloning,...) (#1177)

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

Legend:

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

    r4520 r4752  
    3333using HeuristicLab.Problems.VehicleRouting.Variants;
    3434using HeuristicLab.Problems.VehicleRouting.Encodings;
     35using HeuristicLab.Common;
    3536
    3637namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
     
    105106      Parameters.Add(new LookupParameter<DoubleValue>("Overload", "The overload."));
    106107    }
     108
     109    public override IDeepCloneable Clone(Cloner cloner) {
     110      return new CVRPEvaluator(this, cloner);
     111    }
     112
     113    protected CVRPEvaluator(CVRPEvaluator original, Cloner cloner)
     114      : base(original, cloner) {
     115    }
    107116  }
    108117}
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPProblemInstance.cs

    r4376 r4752  
    3232using HeuristicLab.PluginInfrastructure;
    3333using HeuristicLab.Problems.VehicleRouting.Variants;
     34using HeuristicLab.Common;
    3435
    3536namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
     
    7778      Parameters.Add(new ValueParameter<DoubleValue>("EvalOverloadPenalty", "The overload penalty considered in the evaluation.", new DoubleValue(100)));
    7879    }
     80
     81    public override IDeepCloneable Clone(Cloner cloner) {
     82      return new CVRPProblemInstance(this, cloner);
     83    }
     84
     85    protected CVRPProblemInstance(CVRPProblemInstance original, Cloner cloner)
     86      : base(original, cloner) {
     87    }
    7988  }
    8089}
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPTWEvaluator.cs

    r4520 r4752  
    3333using HeuristicLab.Problems.VehicleRouting.Variants;
    3434using HeuristicLab.Problems.VehicleRouting.Encodings;
     35using HeuristicLab.Common;
    3536
    3637namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
     
    144145      Parameters.Add(new LookupParameter<DoubleValue>("TravelTime", "The travel time."));
    145146    }
     147
     148    public override IDeepCloneable Clone(Cloner cloner) {
     149      return new CVRPTWEvaluator(this, cloner);
     150    }
     151
     152    protected CVRPTWEvaluator(CVRPTWEvaluator original, Cloner cloner)
     153      : base(original, cloner) {
     154    }
    146155  }
    147156}
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPTWProblemInstance.cs

    r4454 r4752  
    3232using HeuristicLab.PluginInfrastructure;
    3333using HeuristicLab.Problems.VehicleRouting.Variants;
     34using HeuristicLab.Common;
    3435
    3536namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
     
    103104      Parameters.Add(new ValueParameter<DoubleValue>("EvalTardinessPenalty", "The tardiness penalty considered in the evaluation.", new DoubleValue(100)));
    104105    }
     106
     107    public override IDeepCloneable Clone(Cloner cloner) {
     108      return new CVRPTWProblemInstance(this, cloner);
     109    }
     110
     111    protected CVRPTWProblemInstance(CVRPTWProblemInstance original, Cloner cloner)
     112      : base(original, cloner) {
     113    }
    105114  }
    106115}
Note: See TracChangeset for help on using the changeset viewer.