Changeset 8053 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation
- Timestamp:
- 06/19/12 13:17:29 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/Capacitated/CapacityRelaxationVRPAnalyzer.cs
r7906 r8053 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 26 23 using HeuristicLab.Core; 27 using HeuristicLab. Persistence.Default.CompositeSerializers.Storable;24 using HeuristicLab.Data; 28 25 using HeuristicLab.Operators; 29 26 using HeuristicLab.Optimization; 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 30 30 using HeuristicLab.Problems.VehicleRouting.Variants; 31 using HeuristicLab.Problems.VehicleRouting.Interfaces;32 using HeuristicLab.Parameters;33 using HeuristicLab.Data;34 using HeuristicLab.Common;35 31 36 32 namespace HeuristicLab.Problems.VehicleRouting { … … 40 36 [Item("CapacityRelaxationVRPAnalyzer", "An operator for adaptively relaxing the capacity constraints.")] 41 37 [StorableClass] 42 public class CapacityRelaxationVRPAnalyzer : SingleSuccessorOperator, IAnalyzer, ICapacitatedOperator {38 public class CapacityRelaxationVRPAnalyzer : SingleSuccessorOperator, IAnalyzer, ICapacitatedOperator { 43 39 public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter { 44 40 get { return (ILookupParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; } … … 102 98 ICapacitatedProblemInstance cvrp = ProblemInstanceParameter.ActualValue as ICapacitatedProblemInstance; 103 99 ResultCollection results = ResultsParameter.ActualValue; 104 100 105 101 ItemArray<DoubleValue> qualities = QualityParameter.ActualValue; 106 102 ItemArray<DoubleValue> overloads = OverloadParameter.ActualValue; 107 103 108 104 double sigma = SigmaParameter.Value.Value; 109 105 double phi = PhiParameter.Value.Value; -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/PickupAndDelivery/PickupViolationsRelaxationVRPAnalyzer.cs
r7906 r8053 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 26 23 using HeuristicLab.Core; 27 using HeuristicLab. Persistence.Default.CompositeSerializers.Storable;24 using HeuristicLab.Data; 28 25 using HeuristicLab.Operators; 29 26 using HeuristicLab.Optimization; 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 30 30 using HeuristicLab.Problems.VehicleRouting.Variants; 31 using HeuristicLab.Problems.VehicleRouting.Interfaces;32 using HeuristicLab.Parameters;33 using HeuristicLab.Data;34 using HeuristicLab.Common;35 31 36 32 namespace HeuristicLab.Problems.VehicleRouting { … … 40 36 [Item("PickupViolationsRelaxationVRPAnalyzer", "An operator for adaptively relaxing the pickup constraints.")] 41 37 [StorableClass] 42 public class PickupViolationsRelaxationVRPAnalyzer : SingleSuccessorOperator, IAnalyzer, IPickupAndDeliveryOperator {38 public class PickupViolationsRelaxationVRPAnalyzer : SingleSuccessorOperator, IAnalyzer, IPickupAndDeliveryOperator { 43 39 public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter { 44 40 get { return (ILookupParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; } … … 102 98 IPickupAndDeliveryProblemInstance pdp = ProblemInstanceParameter.ActualValue as IPickupAndDeliveryProblemInstance; 103 99 ResultCollection results = ResultsParameter.ActualValue; 104 100 105 101 ItemArray<DoubleValue> qualities = QualityParameter.ActualValue; 106 102 ItemArray<IntValue> pickupViolations = PickupViolationsParameter.ActualValue; 107 103 108 104 double sigma = SigmaParameter.Value.Value; 109 105 double phi = PhiParameter.Value.Value; -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/TimeWindowed/TimeWindowRelaxationVRPAnalyzer.cs
r7906 r8053 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 26 23 using HeuristicLab.Core; 27 using HeuristicLab. Persistence.Default.CompositeSerializers.Storable;24 using HeuristicLab.Data; 28 25 using HeuristicLab.Operators; 29 26 using HeuristicLab.Optimization; 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 30 30 using HeuristicLab.Problems.VehicleRouting.Variants; 31 using HeuristicLab.Problems.VehicleRouting.Interfaces;32 using HeuristicLab.Parameters;33 using HeuristicLab.Data;34 using HeuristicLab.Common;35 31 36 32 namespace HeuristicLab.Problems.VehicleRouting { … … 40 36 [Item("TimeWindowRelaxationVRPAnalyzer", "An operator for adaptively relaxing the time window constraints.")] 41 37 [StorableClass] 42 public class TimeWindowRelaxationVRPAnalyzer : SingleSuccessorOperator, IAnalyzer, ITimeWindowedOperator {38 public class TimeWindowRelaxationVRPAnalyzer : SingleSuccessorOperator, IAnalyzer, ITimeWindowedOperator { 43 39 public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter { 44 40 get { return (ILookupParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; } … … 102 98 ITimeWindowedProblemInstance vrptw = ProblemInstanceParameter.ActualValue as ITimeWindowedProblemInstance; 103 99 ResultCollection results = ResultsParameter.ActualValue; 104 100 105 101 ItemArray<DoubleValue> qualities = QualityParameter.ActualValue; 106 102 ItemArray<DoubleValue> tardiness = TardinessParameter.ActualValue; 107 103 108 104 double sigma = SigmaParameter.Value.Value; 109 105 double phi = PhiParameter.Value.Value;
Note: See TracChangeset
for help on using the changeset viewer.