Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/06/15 15:33:25 (9 years ago)
Author:
mkommend
Message:

#2521: Added encodings for schedules.

Location:
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Manipulators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Manipulators/PWRInsertionManipulator.cs

    r12012 r13437  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828
    29 namespace HeuristicLab.Encodings.ScheduleEncoding.PermutationWithRepetition {
     29namespace HeuristicLab.Encodings.ScheduleEncoding {
    3030  [Item("PWRInsertionManipulator", "Represents a manipulation operation inserting parts of the individual at another position.")]
    3131  [StorableClass]
     
    4343      int cutIndex = random.Next(individual.PermutationWithRepetition.Length);
    4444      int insertIndex = random.Next(individual.PermutationWithRepetition.Length);
    45       List<int> perm = ((IntegerVector)(individual.PermutationWithRepetition.Clone())).ToList<int>();
     45      List<int> perm = ((IntegerVector)(individual.PermutationWithRepetition.Clone())).ToList();
    4646      int aux = perm[cutIndex];
    4747      if (cutIndex > insertIndex) {
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Manipulators/PWRManipulator.cs

    r13435 r13437  
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2626
    27 namespace HeuristicLab.Encodings.ScheduleEncoding.PermutationWithRepetition {
     27namespace HeuristicLab.Encodings.ScheduleEncoding {
    2828  [Item("PWRManipulator", "An operator which manipulates a PWR representation.")]
    2929  [StorableClass]
     
    3333    protected PWRManipulator(bool deserializing) : base(deserializing) { }
    3434    protected PWRManipulator(PWRManipulator original, Cloner cloner) : base(original, cloner) { }
    35     public PWRManipulator()
    36       : base() {
    37       ScheduleParameter.ActualName = "PermutationWithRepetition";
    38     }
     35    public PWRManipulator() : base() { }
    3936
    4037    protected abstract void Manipulate(IRandom random, PWREncoding individual);
Note: See TracChangeset for help on using the changeset viewer.