Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5382


Ignore:
Timestamp:
01/27/11 09:44:35 (14 years ago)
Author:
abeham
Message:

#1395

  • Fixed RealVectorCrossover (it did not produce a child)
  • Added wiring of the bounds checker
Location:
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCrossover.cs

    r5381 r5382  
    8080    public sealed override IOperation Apply() {
    8181      RealVector result = Cross(RandomParameter.ActualValue, ParentsParameter.ActualValue);
     82      ChildParameter.ActualValue = result;
    8283
    8384      IRealVectorBoundsChecker checker = BoundsCheckerParameter.Value;
    8485      IOperation successor = base.Apply();
    8586      if (checker != null) {
     87        checker.BoundsParameter.ActualName = BoundsParameter.ActualName;
     88        checker.RealVectorParameter.ActualName = ChildParameter.ActualName;
    8689        IOperation checkerOperation = ExecutionContext.CreateChildOperation(checker);
    8790        if (successor == null) return checkerOperation;
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorManipulator.cs

    r5381 r5382  
    7979      IOperation successor = base.Apply();
    8080      if (checker != null) {
     81        checker.BoundsParameter.ActualName = BoundsParameter.ActualName;
     82        checker.RealVectorParameter.ActualName = RealVectorParameter.ActualName;
    8183        IOperation checkerOperation = ExecutionContext.CreateChildOperation(checker);
    8284        if (successor == null) return checkerOperation;
Note: See TracChangeset for help on using the changeset viewer.