Changeset 15482 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SchemaDiversification/SchemaEvaluator.cs
- Timestamp:
- 11/21/17 16:00:15 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SchemaDiversification/SchemaEvaluator.cs
r14427 r15482 92 92 get { return (ILookupParameter<BoolValue>)Parameters[RandomReplacementParameterName]; } 93 93 } 94 public ILookupParameter<ISymbolicExpressionTreeManipulator> MutatorParameter {95 get { return (ILookupParameter<ISymbolicExpressionTreeManipulator>)Parameters[MutatorParameterName]; }96 }97 94 public ILookupParameter<ISymbolicExpressionTreeCrossover> CrossoverParameter { 98 95 get { return (ILookupParameter<ISymbolicExpressionTreeCrossover>)Parameters[CrossoverParameterName]; } … … 148 145 [Storable] 149 146 private readonly UpdateQualityOperator updateQualityOperator; 147 148 [Storable] 149 public ISymbolicExpressionTreeManipulator SchemaManipulator { get; set; } 150 150 151 151 [StorableHook(HookType.AfterDeserialization)] … … 221 221 222 222 var random = RandomParameter.ActualValue; 223 var mutator = MutatorParameter.ActualValue;224 223 225 224 var s = Schema; … … 303 302 var updateEstimatedValues = new OperationCollection { Parallel = true }; // evaluation should be done in parallel when possible 304 303 foreach (var ind in individualsToReplace) { 305 var mutatorOp = ExecutionContext.CreateChildOperation( mutator, ind);304 var mutatorOp = ExecutionContext.CreateChildOperation(SchemaManipulator, ind); 306 305 var updateOp = ExecutionContext.CreateChildOperation(updateQualityOperator, ind); 307 306 mutationOc.Add(mutatorOp);
Note: See TracChangeset
for help on using the changeset viewer.