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
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Crossovers/PWRCrossover.cs

    r12012 r13437  
    2424using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2525
    26 namespace HeuristicLab.Encodings.ScheduleEncoding.PermutationWithRepetition {
     26namespace HeuristicLab.Encodings.ScheduleEncoding {
    2727  [Item("PWRCrossover", "An operator which crosses two JSM representations.")]
    2828  [StorableClass]
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Crossovers/PWRGOXCrossover.cs

    r12012 r13437  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828
    29 namespace HeuristicLab.Encodings.ScheduleEncoding.PermutationWithRepetition {
     29namespace HeuristicLab.Encodings.ScheduleEncoding {
    3030  [Item("PWRGeneralizationOrderCrossover", "Represents a crossover operation swapping sequences of the parents to generate offspring.")]
    3131  [StorableClass]
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Crossovers/PWRPPXCrossover.cs

    r12012 r13437  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828
    29 namespace HeuristicLab.Encodings.ScheduleEncoding.PermutationWithRepetition {
     29namespace HeuristicLab.Encodings.ScheduleEncoding {
    3030  [Item("PWRPPXCrossover", "Represents a crossover operation swapping sequences of the parents to generate offspring.")]
    3131  [StorableClass]
  • 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);
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/PWREncoding.cs

    r13435 r13437  
    2626using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2727
    28 namespace HeuristicLab.Encodings.ScheduleEncoding.PermutationWithRepetition {
     28namespace HeuristicLab.Encodings.ScheduleEncoding {
    2929  [Item("PermutationWithRepetitionEncoding", "Represents a encoding for a standard JobShop Scheduling Problem.")]
    3030  [StorableClass]
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/PWRRandomCreator.cs

    r13435 r13437  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
    24 using HeuristicLab.Data;
    2524using HeuristicLab.Optimization;
    2625using HeuristicLab.Parameters;
    2726using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2827
    29 namespace HeuristicLab.Encodings.ScheduleEncoding.PermutationWithRepetition {
     28namespace HeuristicLab.Encodings.ScheduleEncoding {
    3029  [Item("PermutationWithRepetitionRandomCreator", "Creates PWR-individuals at random.")]
    3130  [StorableClass]
     
    3433    public ILookupParameter<IRandom> RandomParameter {
    3534      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    36     }
    37     public IValueLookupParameter<IntValue> JobsParameter {
    38       get { return (IValueLookupParameter<IntValue>)Parameters["Jobs"]; }
    39     }
    40     public IValueLookupParameter<IntValue> ResourcesParameter {
    41       get { return (IValueLookupParameter<IntValue>)Parameters["Resources"]; }
    4235    }
    4336
     
    4841      : base() {
    4942      Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator."));
    50       Parameters.Add(new ValueLookupParameter<IntValue>("Jobs", "The number of jobs handled in this problem instance."));
    51       Parameters.Add(new ValueLookupParameter<IntValue>("Resources", "The number of resources used in this problem instance."));
    52 
    53       ScheduleParameter.ActualName = "PermutationWithRepetition";
    5443    }
    5544
Note: See TracChangeset for help on using the changeset viewer.