Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/08/15 14:31:05 (8 years ago)
Author:
mkommend
Message:

#2521: Adapted decoders for SchedulingProblem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PriorityRulesVector/Manipulators/PRVUniformOnePositionManipulator.cs

    r13437 r13443  
    4040    }
    4141
    42     public static void Apply(IRandom random, PRVEncoding individual) {
    43       UniformOnePositionManipulator.Apply(random, individual.PriorityRulesVector, new IntMatrix(new int[,] { { 0, individual.NrOfRules } }));
     42    public static void Apply(IRandom random, PRVEncoding individual, int numberOfRules) {
     43      UniformOnePositionManipulator.Apply(random, individual.PriorityRulesVector, new IntMatrix(new int[,] { { 0, numberOfRules } }));
    4444    }
    4545
    46     protected override void Manipulate(IRandom random, PRVEncoding individual) {
    47       Apply(random, individual);
     46    protected override void Manipulate(IRandom random, PRVEncoding individual, int numberOfRules) {
     47      Apply(random, individual, numberOfRules);
    4848    }
    4949  }
Note: See TracChangeset for help on using the changeset viewer.