Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/05/12 08:34:36 (12 years ago)
Author:
svonolfe
Message:

Merged changes from trunk into branch (#1177)

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

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4

  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/VRPProblemInstance.cs

    r7852 r7958  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
     25using HeuristicLab.Common;
     26using HeuristicLab.Core;
     27using HeuristicLab.Data;
     28using HeuristicLab.Parameters;
     29using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    2631using HeuristicLab.Problems.VehicleRouting.Interfaces;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using HeuristicLab.Core;
    29 using HeuristicLab.Parameters;
    30 using HeuristicLab.Data;
    31 using HeuristicLab.Optimization;
    32 using HeuristicLab.PluginInfrastructure;
    33 using HeuristicLab.Common;
    34 using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    3532
    3633namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
     
    7269      }
    7370    }
    74    
     71
    7572    protected ValueParameter<DoubleMatrix> CoordinatesParameter {
    7673      get { return (ValueParameter<DoubleMatrix>)Parameters["Coordinates"]; }
     
    174171
    175172    public IVRPEvaluator SolutionEvaluator {
    176       get {       
     173      get {
    177174        return evaluator;
    178175      }
     
    187184      if (distanceMatrix != null)
    188185        distance = distanceMatrix[start, end];
    189       else 
     186      else
    190187        distance = CalculateDistance(start, end);
    191188
     
    199196      startDistance = GetDistance(start, customer, solution);
    200197      endDistance = GetDistance(customer, end, solution);
    201      
     198
    202199      double newDistance = startDistance + endDistance;
    203200
     
    244241    protected abstract IVRPEvaluator Evaluator { get; }
    245242    protected abstract IVRPCreator Creator { get; }
    246    
     243
    247244    [StorableConstructor]
    248245    protected VRPProblemInstance(bool deserializing) : base(deserializing) { }
     
    265262    protected VRPProblemInstance(VRPProblemInstance original, Cloner cloner)
    266263      : base(original, cloner) {
    267       evaluator = Evaluator; 
     264      evaluator = Evaluator;
    268265      AttachEventHandlers();
    269266    }
    270267
    271268    [StorableHook(HookType.AfterDeserialization)]
    272     private void AfterDeserializationHook() {
     269    private void AfterDeserialization() {
    273270      evaluator = Evaluator;
    274271      AttachEventHandlers();
Note: See TracChangeset for help on using the changeset viewer.