Free cookie consent management tool by TermsFeed Policy Generator

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

#1722 fixed more licensing information and source formatting

Location:
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/Interfaces/IMultiVRPMoveGenerator.cs

    r4370 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 HeuristicLab.Core;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    2422using HeuristicLab.Optimization;
    2523
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/Interfaces/IMultiVRPMoveOperator.cs

    r4370 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 HeuristicLab.Core;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    24 using HeuristicLab.Optimization;
    2522using HeuristicLab.Problems.VehicleRouting.Interfaces;
    26 using HeuristicLab.Problems.VehicleRouting.Variants;
    2723
    2824namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/Interfaces/IVRPMove.cs

    r6772 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.
     
    2121
    2222using HeuristicLab.Core;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    2423using HeuristicLab.Optimization;
    25 using HeuristicLab.Data;
    26 using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2724
    2825namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveEvaluator.cs

    r6772 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
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    23 using HeuristicLab.Encodings.PermutationEncoding;
    2424using HeuristicLab.Parameters;
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2626using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    2727using HeuristicLab.Problems.VehicleRouting.Variants;
    28 using HeuristicLab.Common;
    2928
    3029namespace HeuristicLab.Problems.VehicleRouting {
     
    4140    public MultiVRPMoveEvaluator()
    4241      : base() {
    43         Parameters.Add(new LookupParameter<IVRPMove>("VRPMove", "The generated moves."));
     42      Parameters.Add(new LookupParameter<IVRPMove>("VRPMove", "The generated moves."));
    4443    }
    4544
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveGenerator.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.
     
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Linq;
    2425using HeuristicLab.Collections;
     26using HeuristicLab.Common;
    2527using HeuristicLab.Core;
     28using HeuristicLab.Data;
    2629using HeuristicLab.Operators;
    2730using HeuristicLab.Optimization;
    2831using HeuristicLab.Parameters;
    2932using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    30 using HeuristicLab.PluginInfrastructure;
    31 using HeuristicLab.Data;
    32 using System.Collections.Generic;
    3333using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3434using HeuristicLab.Problems.VehicleRouting.Variants;
    35 using HeuristicLab.Common;
    3635
    3736namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveMaker.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
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    23 using HeuristicLab.Data;
    24 using HeuristicLab.Operators;
    25 using HeuristicLab.Optimization;
    2624using HeuristicLab.Parameters;
    2725using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using System.Collections.Generic;
    2926using HeuristicLab.Problems.VehicleRouting.Variants;
    30 using HeuristicLab.Common;
    3127
    32 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General{
     28namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    3329  [Item("MultiVRPMoveMaker", "Peforms a lambda interchange moves on a given VRP encoding and updates the quality.")]
    3430  [StorableClass]
     
    3733      get { return (ILookupParameter)Parameters["VRPMove"]; }
    3834    }
    39    
     35
    4036    [StorableConstructor]
    4137    protected MultiVRPMoveMaker(bool deserializing) : base(deserializing) { }
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveTabuChecker.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
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Data;
     
    2627using HeuristicLab.Parameters;
    2728using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using System.Collections.Generic;
     29using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2930using HeuristicLab.Problems.VehicleRouting.Variants;
    30 using HeuristicLab.Common;
    31 using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3231
    33 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General{
     32namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    3433  [Item("MultiVRPMoveTabuChecker", "Checks if a VRP move is tabu.")]
    3534  [StorableClass]
     
    6665      set { UseAspirationCriterionParameter.Value = value; }
    6766    }
    68    
     67
    6968    [StorableConstructor]
    7069    protected MultiVRPMoveTabuChecker(bool deserializing) : base(deserializing) { }
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveTabuMaker.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
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Data;
     
    2627using HeuristicLab.Parameters;
    2728using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using System.Collections.Generic;
     29using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2930using HeuristicLab.Problems.VehicleRouting.Variants;
    30 using HeuristicLab.Common;
    31 using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3231
    33 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General{
     32namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    3433  [Item("MultiVRPMoveTabuMaker", "A multi VRP move tabu maker.")]
    3534  [StorableClass]
     
    5958      get { return (LookupParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; }
    6059    }
    61    
     60
    6261    [StorableConstructor]
    6362    protected MultiVRPMoveTabuMaker(bool deserializing) : base(deserializing) { }
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveAttribute.cs

    r5127 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.
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveEvaluator.cs

    r5867 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;
     23using HeuristicLab.Core;
     24using HeuristicLab.Data;
     25using HeuristicLab.Optimization;
     26using HeuristicLab.Parameters;
    2627using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    27 using HeuristicLab.Core;
    28 using HeuristicLab.Optimization;
    29 using HeuristicLab.Data;
    30 using HeuristicLab.Parameters;
    3128using HeuristicLab.Problems.VehicleRouting.Interfaces;
    32 using HeuristicLab.Common;
    3329
    3430namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
     
    3733  public abstract class VRPMoveEvaluator : VRPMoveOperator, ISingleObjectiveMoveEvaluator {
    3834    public const string MovePrefix = "Move";
    39    
     35
    4036    public ILookupParameter<DoubleValue> QualityParameter {
    4137      get { return (ILookupParameter<DoubleValue>)Parameters["Quality"]; }
     
    8278    public override IOperation Apply() {
    8379      EvaluateMove();
    84      
     80
    8581      return base.Apply();
    8682    }
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveGenerator.cs

    r4752 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;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     22using HeuristicLab.Common;
    2723using HeuristicLab.Core;
    2824using HeuristicLab.Optimization;
    29 using HeuristicLab.Data;
    30 using HeuristicLab.Parameters;
    31 using HeuristicLab.Problems.VehicleRouting.Interfaces;
    32 using HeuristicLab.Common;
     25using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3326
    3427namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    3528  [Item("VRPMoveGenerator", "Generates moves for a VRP solution.")]
    3629  [StorableClass]
    37   public abstract class 
     30  public abstract class
    3831    VRPMoveGenerator : VRPMoveOperator, IMoveGenerator {
    3932    [StorableConstructor]
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveMaker.cs

    r7852 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;
    2322using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     23using HeuristicLab.Common;
     24using HeuristicLab.Core;
     25using HeuristicLab.Data;
     26using HeuristicLab.Optimization;
     27using HeuristicLab.Parameters;
    2628using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    27 using HeuristicLab.Core;
    28 using HeuristicLab.Optimization;
    29 using HeuristicLab.Data;
    30 using HeuristicLab.Parameters;
    3129using HeuristicLab.Problems.VehicleRouting.Interfaces;
    32 using HeuristicLab.Common;
    3330
    3431namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
     
    6562      IVRPEvaluator evaluator = ProblemInstance.SolutionEvaluator;
    6663      ICollection<IParameter> addedParameters = new List<IParameter>();
    67      
     64
    6865      try {
    6966        foreach (IParameter parameter in evaluator.Parameters) {
    70           if (parameter is ILookupParameter 
    71             && parameter != evaluator.VRPToursParameter 
     67          if (parameter is ILookupParameter
     68            && parameter != evaluator.VRPToursParameter
    7269            && parameter != evaluator.ProblemInstanceParameter) {
    7370            ILookupParameter evaluatorParameter = parameter as ILookupParameter;
    74          
     71
    7572            string resultName = evaluatorParameter.ActualName;
    7673            if (!this.Parameters.ContainsKey(resultName)) {
     
    8481            if (!this.Parameters.ContainsKey(moveResultName)) {
    8582              ILookupParameter moveResultParameter = new LookupParameter<IItem>(moveResultName);
    86               moveResultParameter.ExecutionContext = ExecutionContext; 
     83              moveResultParameter.ExecutionContext = ExecutionContext;
    8784              this.Parameters.Add(moveResultParameter);
    8885              addedParameters.Add(moveResultParameter);
     
    9693      }
    9794      finally {
    98         foreach(IParameter parameter in addedParameters) {
     95        foreach (IParameter parameter in addedParameters) {
    9996          this.Parameters.Remove(parameter);
    10097        }
     
    105102      PerformMove();
    106103      UpdateMoveEvaluation();
    107      
     104
    108105      return base.Apply();
    109106    }
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveOperator.cs

    r4752 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;
     23using HeuristicLab.Core;
     24using HeuristicLab.Parameters;
    2625using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    27 using HeuristicLab.Core;
    2826using HeuristicLab.Problems.VehicleRouting.Interfaces;
    29 using HeuristicLab.Parameters;
    30 using HeuristicLab.Common;
    3127
    3228namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
Note: See TracChangeset for help on using the changeset viewer.