Changeset 8214 for branches/GP-MoveOperators/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/ReplaceBranchMoveTabuMaker.cs
- Timestamp:
- 07/04/12 16:23:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/ReplaceBranchMoveTabuMaker.cs
r8206 r8214 55 55 var move = ReplaceBranchMoveParameter.ActualValue; 56 56 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 quality57 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 59 59 60 60 List<int> path = new List<int>(); … … 68 68 } 69 69 path.Reverse(); 70 return new ChangeNodeTypeMoveAbsoluteAttribute(path.ToArray(), baseQuality);70 return new ChangeNodeTypeMoveAbsoluteAttribute(path.ToArray(), aspirationThreshold, move.OriginalOutput, move.NewOutput); 71 71 } 72 72 }
Note: See TracChangeset
for help on using the changeset viewer.