Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/04/12 16:23:35 (12 years ago)
Author:
gkronber
Message:

#1847: bug fixes and improvements discussed with andreas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GP-MoveOperators/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/ReplaceBranchMoveTabuMaker.cs

    r8206 r8214  
    5555      var move = ReplaceBranchMoveParameter.ActualValue;
    5656      var tree = SymbolicExpressionTreeParameter.ActualValue;
    57       double baseQuality = moveQuality;
    58       if (maximization && quality > moveQuality || !maximization && quality < moveQuality) baseQuality = quality; // we make an uphill move, the lower bound is the solution quality
     57      double aspirationThreshold = moveQuality;
     58      if (maximization && quality > moveQuality || !maximization && quality < moveQuality) aspirationThreshold = quality; // if we make a bad move, the aspriation threshold is the solution quality
    5959
    6060      List<int> path = new List<int>();
     
    6868      }
    6969      path.Reverse();
    70       return new ChangeNodeTypeMoveAbsoluteAttribute(path.ToArray(), baseQuality);
     70      return new ChangeNodeTypeMoveAbsoluteAttribute(path.ToArray(), aspirationThreshold, move.OriginalOutput, move.NewOutput);
    7171    }
    7272  }
Note: See TracChangeset for help on using the changeset viewer.