Opened 4 weeks ago

Last modified 4 weeks ago

#2986 accepted defect

RoundedNormalAllPositionsManipulator applies bounds incorrectly

Reported by: jkarder Owned by: jkarder
Priority: medium Milestone: HeuristicLab 3.3.16
Component: Encodings.IntegerVectorEncoding Version:
Keywords: Cc:


Since RoundFeasible was introduced, which takes care of transforming each dimension into a feasible value, part of the old transformation code was left over, which leads to wrong manipulations:

int value = (vector[i] + (int)Math.Round((N.NextDouble() * sigma[i % sigma.Length])) - min) / step; // transformation 1
max = FloorFeasible(min, max, step, max - 1);
vector[i] = RoundFeasible(min, max, step, value); // transformation 2

Change History (1)

comment:1 Changed 4 weeks ago by jkarder

  • Status changed from new to accepted
Note: See TracTickets for help on using tickets.