Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/25/12 11:32:22 (12 years ago)
Author:
svonolfe
Message:

Fixed issues that prevented the unit tests to pass (#1177)

Location:
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/Capacitated/CapacityRelaxationVRPAnalyzer.cs

    r7175 r7906  
    7474
    7575    [StorableConstructor]
    76     private CapacityRelaxationVRPAnalyzer(bool deserializing) : base(deserializing) { }
     76    protected CapacityRelaxationVRPAnalyzer(bool deserializing) : base(deserializing) { }
    7777
    7878    public CapacityRelaxationVRPAnalyzer()
     
    9595    }
    9696
    97     private CapacityRelaxationVRPAnalyzer(CapacityRelaxationVRPAnalyzer original, Cloner cloner)
     97    protected CapacityRelaxationVRPAnalyzer(CapacityRelaxationVRPAnalyzer original, Cloner cloner)
    9898      : base(original, cloner) {
    9999    }
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/PickupAndDelivery/PickupViolationsRelaxationVRPAnalyzer.cs

    r7175 r7906  
    7474
    7575    [StorableConstructor]
    76     private PickupViolationsRelaxationVRPAnalyzer(bool deserializing) : base(deserializing) { }
     76    protected PickupViolationsRelaxationVRPAnalyzer(bool deserializing) : base(deserializing) { }
    7777
    7878    public PickupViolationsRelaxationVRPAnalyzer()
     
    9595    }
    9696
    97     private PickupViolationsRelaxationVRPAnalyzer(PickupViolationsRelaxationVRPAnalyzer original, Cloner cloner)
     97    protected PickupViolationsRelaxationVRPAnalyzer(PickupViolationsRelaxationVRPAnalyzer original, Cloner cloner)
    9898      : base(original, cloner) {
    9999    }
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/TimeWindowed/TimeWindowRelaxationVRPAnalyzer.cs

    r7175 r7906  
    7474
    7575    [StorableConstructor]
    76     private TimeWindowRelaxationVRPAnalyzer(bool deserializing) : base(deserializing) { }
     76    protected TimeWindowRelaxationVRPAnalyzer(bool deserializing) : base(deserializing) { }
    7777
    7878    public TimeWindowRelaxationVRPAnalyzer()
     
    9595    }
    9696
    97     private TimeWindowRelaxationVRPAnalyzer(TimeWindowRelaxationVRPAnalyzer original, Cloner cloner)
     97    protected TimeWindowRelaxationVRPAnalyzer(TimeWindowRelaxationVRPAnalyzer original, Cloner cloner)
    9898      : base(original, cloner) {
    9999    }
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/VRPSolution.cs

    r7203 r7906  
    106106    private VRPSolution(VRPSolution original, Cloner cloner)
    107107      : base(original, cloner) {
    108       this.problemInstance = original.problemInstance;
    109108      this.solution = (IVRPEncoding)cloner.Clone(original.solution);
    110109      this.quality = (DoubleValue)cloner.Clone(original.quality);
     110
     111      if (original.ProblemInstance != null && cloner.ClonedObjectRegistered(original.ProblemInstance))
     112        this.ProblemInstance = (IVRPProblemInstance)cloner.Clone(original.ProblemInstance);
     113      else
     114        this.ProblemInstance = original.ProblemInstance;
    111115
    112116      this.Initialize();
Note: See TracChangeset for help on using the changeset viewer.