Changeset 5178 for branches/ParallelEngine/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3
- Timestamp:
- 12/28/10 01:44:33 (14 years ago)
- Location:
- branches/ParallelEngine/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Analyzers/SymbolicExpressionTreeSizeCalculator.cs
r5177 r5178 65 65 } 66 66 67 public override IOperation Apply( IExecutionContext context) {67 public override IOperation Apply() { 68 68 SymbolicExpressionTree tree = SymbolicExpressionTree; 69 69 SymbolicExpressionTreeSize = new DoubleValue(tree.Size); 70 return base.Apply( context);70 return base.Apply(); 71 71 } 72 72 -
branches/ParallelEngine/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Creators/SymbolicExpressionTreeCreator.cs
r5177 r5178 72 72 } 73 73 74 public sealed override IOperation Apply( IExecutionContext context) {74 public sealed override IOperation Apply() { 75 75 SymbolicExpressionTree = Create(Random, SymbolicExpressionGrammar, 76 76 MaxTreeSize, MaxTreeHeight, MaxFunctionDefinitions, MaxFunctionArguments); 77 return base.Apply( context);77 return base.Apply(); 78 78 } 79 79 -
branches/ParallelEngine/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Crossovers/SymbolicExpressionTreeCrossover.cs
r5177 r5178 61 61 } 62 62 63 public sealed override IOperation Apply( IExecutionContext context) {63 public sealed override IOperation Apply() { 64 64 if (ParentsParameter.ActualValue.Length != 2) 65 65 throw new ArgumentException("Number of parents must be exactly two for symbolic expression tree crossover operators."); … … 77 77 78 78 ChildParameter.ActualValue = result; 79 return base.Apply( context);79 return base.Apply(); 80 80 } 81 81 -
branches/ParallelEngine/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/SymbolicExpressionTreeManipulator.cs
r5177 r5178 64 64 } 65 65 66 public sealed override IOperation Apply( IExecutionContext context) {66 public sealed override IOperation Apply() { 67 67 SymbolicExpressionTree tree = SymbolicExpressionTreeParameter.ActualValue; 68 68 bool success; … … 71 71 72 72 if (!success) FailedManipulationEvents.Value++; 73 return base.Apply( context);73 return base.Apply(); 74 74 } 75 75
Note: See TracChangeset
for help on using the changeset viewer.