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
Files:
8 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}
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/SingleDepotVRPEvaluator.cs

    r4378 r4752  
    3333using HeuristicLab.Problems.VehicleRouting.Variants;
    3434using HeuristicLab.Problems.VehicleRouting.Encodings;
     35using HeuristicLab.Common;
    3536
    3637
     
    7374    public SingleDepotVRPEvaluator() {
    7475    }
     76
     77    public override IDeepCloneable Clone(Cloner cloner) {
     78      return new SingleDepotVRPEvaluator(this, cloner);
     79    }
     80
     81    protected SingleDepotVRPEvaluator(SingleDepotVRPEvaluator original, Cloner cloner)
     82      : base(original, cloner) {
     83    }
    7584  }
    7685}
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/SingleDepotVRPProblemInstance.cs

    r4374 r4752  
    3232using HeuristicLab.PluginInfrastructure;
    3333using HeuristicLab.Problems.VehicleRouting.Variants;
     34using HeuristicLab.Common;
    3435
    3536namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
     
    7071    public SingleDepotVRPProblemInstance() {
    7172    }
     73
     74    public override IDeepCloneable Clone(Cloner cloner) {
     75      return new SingleDepotVRPProblemInstance(this, cloner);
     76    }
     77
     78    protected SingleDepotVRPProblemInstance(SingleDepotVRPProblemInstance original, Cloner cloner)
     79      : base(original, cloner) {
     80    }
    7281  }
    7382}
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/VRPEvaluator.cs

    r4520 r4752  
    3333using HeuristicLab.Problems.VehicleRouting.Variants;
    3434using HeuristicLab.Problems.VehicleRouting.Encodings;
     35using HeuristicLab.Common;
    3536
    3637namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
     
    6465      Parameters.Add(new LookupParameter<DoubleValue>("Distance", "The distance."));
    6566      Parameters.Add(new LookupParameter<DoubleValue>("VehiclesUtilized", "The number of vehicles utilized."));
     67    }
     68
     69    protected VRPEvaluator(VRPEvaluator original, Cloner cloner)
     70      : base(original, cloner) {
    6671    }
    6772
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/VRPProblemInstance.cs

    r4380 r4752  
    3131using HeuristicLab.Optimization;
    3232using HeuristicLab.PluginInfrastructure;
     33using HeuristicLab.Common;
    3334
    3435namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
     
    192193      Parameters.Add(new ValueParameter<IVRPEvaluator>("Evaluator", "The operator which should be used to evaluate VRP solutions.", Evaluator));
    193194    }
     195
     196    protected VRPProblemInstance(VRPProblemInstance original, Cloner cloner)
     197      : base(original, cloner) {
     198    }
    194199  }
    195200}
Note: See TracChangeset for help on using the changeset viewer.