Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/12 13:17:29 (13 years ago)
Author:
ascheibe
Message:

#1722 fixed more licensing information and source formatting

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  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     22using HeuristicLab.Common;
    2623using HeuristicLab.Core;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     24using HeuristicLab.Data;
    2825using HeuristicLab.Operators;
    2926using HeuristicLab.Optimization;
     27using HeuristicLab.Parameters;
     28using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3030using HeuristicLab.Problems.VehicleRouting.Variants;
    31 using HeuristicLab.Problems.VehicleRouting.Interfaces;
    32 using HeuristicLab.Parameters;
    33 using HeuristicLab.Data;
    34 using HeuristicLab.Common;
    3531
    3632namespace HeuristicLab.Problems.VehicleRouting {
     
    4036  [Item("CapacityRelaxationVRPAnalyzer", "An operator for adaptively relaxing the capacity constraints.")]
    4137  [StorableClass]
    42   public class CapacityRelaxationVRPAnalyzer: SingleSuccessorOperator, IAnalyzer, ICapacitatedOperator {
     38  public class CapacityRelaxationVRPAnalyzer : SingleSuccessorOperator, IAnalyzer, ICapacitatedOperator {
    4339    public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter {
    4440      get { return (ILookupParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; }
     
    10298      ICapacitatedProblemInstance cvrp = ProblemInstanceParameter.ActualValue as ICapacitatedProblemInstance;
    10399      ResultCollection results = ResultsParameter.ActualValue;
    104      
     100
    105101      ItemArray<DoubleValue> qualities = QualityParameter.ActualValue;
    106102      ItemArray<DoubleValue> overloads = OverloadParameter.ActualValue;
    107      
     103
    108104      double sigma = SigmaParameter.Value.Value;
    109105      double phi = PhiParameter.Value.Value;
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/PickupAndDelivery/PickupViolationsRelaxationVRPAnalyzer.cs

    r7906 r8053  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     22using HeuristicLab.Common;
    2623using HeuristicLab.Core;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     24using HeuristicLab.Data;
    2825using HeuristicLab.Operators;
    2926using HeuristicLab.Optimization;
     27using HeuristicLab.Parameters;
     28using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3030using HeuristicLab.Problems.VehicleRouting.Variants;
    31 using HeuristicLab.Problems.VehicleRouting.Interfaces;
    32 using HeuristicLab.Parameters;
    33 using HeuristicLab.Data;
    34 using HeuristicLab.Common;
    3531
    3632namespace HeuristicLab.Problems.VehicleRouting {
     
    4036  [Item("PickupViolationsRelaxationVRPAnalyzer", "An operator for adaptively relaxing the pickup constraints.")]
    4137  [StorableClass]
    42   public class PickupViolationsRelaxationVRPAnalyzer: SingleSuccessorOperator, IAnalyzer, IPickupAndDeliveryOperator {
     38  public class PickupViolationsRelaxationVRPAnalyzer : SingleSuccessorOperator, IAnalyzer, IPickupAndDeliveryOperator {
    4339    public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter {
    4440      get { return (ILookupParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; }
     
    10298      IPickupAndDeliveryProblemInstance pdp = ProblemInstanceParameter.ActualValue as IPickupAndDeliveryProblemInstance;
    10399      ResultCollection results = ResultsParameter.ActualValue;
    104      
     100
    105101      ItemArray<DoubleValue> qualities = QualityParameter.ActualValue;
    106102      ItemArray<IntValue> pickupViolations = PickupViolationsParameter.ActualValue;
    107      
     103
    108104      double sigma = SigmaParameter.Value.Value;
    109105      double phi = PhiParameter.Value.Value;
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/TimeWindowed/TimeWindowRelaxationVRPAnalyzer.cs

    r7906 r8053  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     22using HeuristicLab.Common;
    2623using HeuristicLab.Core;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     24using HeuristicLab.Data;
    2825using HeuristicLab.Operators;
    2926using HeuristicLab.Optimization;
     27using HeuristicLab.Parameters;
     28using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3030using HeuristicLab.Problems.VehicleRouting.Variants;
    31 using HeuristicLab.Problems.VehicleRouting.Interfaces;
    32 using HeuristicLab.Parameters;
    33 using HeuristicLab.Data;
    34 using HeuristicLab.Common;
    3531
    3632namespace HeuristicLab.Problems.VehicleRouting {
     
    4036  [Item("TimeWindowRelaxationVRPAnalyzer", "An operator for adaptively relaxing the time window constraints.")]
    4137  [StorableClass]
    42   public class TimeWindowRelaxationVRPAnalyzer: SingleSuccessorOperator, IAnalyzer, ITimeWindowedOperator {
     38  public class TimeWindowRelaxationVRPAnalyzer : SingleSuccessorOperator, IAnalyzer, ITimeWindowedOperator {
    4339    public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter {
    4440      get { return (ILookupParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; }
     
    10298      ITimeWindowedProblemInstance vrptw = ProblemInstanceParameter.ActualValue as ITimeWindowedProblemInstance;
    10399      ResultCollection results = ResultsParameter.ActualValue;
    104      
     100
    105101      ItemArray<DoubleValue> qualities = QualityParameter.ActualValue;
    106102      ItemArray<DoubleValue> tardiness = TardinessParameter.ActualValue;
    107      
     103
    108104      double sigma = SigmaParameter.Value.Value;
    109105      double phi = PhiParameter.Value.Value;
Note: See TracChangeset for help on using the changeset viewer.