- Timestamp:
- 12/26/10 03:51:30 (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
r4722 r5177 65 65 } 66 66 67 public override IOperation Apply( ) {67 public override IOperation Apply(IExecutionContext context) { 68 68 SymbolicExpressionTree tree = SymbolicExpressionTree; 69 69 SymbolicExpressionTreeSize = new DoubleValue(tree.Size); 70 return base.Apply( );70 return base.Apply(context); 71 71 } 72 72 -
branches/ParallelEngine/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Creators/SymbolicExpressionTreeCreator.cs
r4722 r5177 72 72 } 73 73 74 public sealed override IOperation Apply( ) {74 public sealed override IOperation Apply(IExecutionContext context) { 75 75 SymbolicExpressionTree = Create(Random, SymbolicExpressionGrammar, 76 76 MaxTreeSize, MaxTreeHeight, MaxFunctionDefinitions, MaxFunctionArguments); 77 return base.Apply( );77 return base.Apply(context); 78 78 } 79 79 -
branches/ParallelEngine/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Crossovers/SymbolicExpressionTreeCrossover.cs
r4722 r5177 61 61 } 62 62 63 public sealed override IOperation Apply( ) {63 public sealed override IOperation Apply(IExecutionContext context) { 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( );79 return base.Apply(context); 80 80 } 81 81 -
branches/ParallelEngine/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/SymbolicExpressionTreeManipulator.cs
r4722 r5177 64 64 } 65 65 66 public sealed override IOperation Apply( ) {66 public sealed override IOperation Apply(IExecutionContext context) { 67 67 SymbolicExpressionTree tree = SymbolicExpressionTreeParameter.ActualValue; 68 68 bool success; … … 71 71 72 72 if (!success) FailedManipulationEvents.Value++; 73 return base.Apply( );73 return base.Apply(context); 74 74 } 75 75
Note: See TracChangeset
for help on using the changeset viewer.