- Timestamp:
- 07/04/08 17:30:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/Evaluation/GPEvaluatorBase.cs
r334 r363 57 57 this.totalEvaluatedNodes = scope.GetVariableValue<DoubleData>("TotalEvaluatedNodes", true).Data; 58 58 double result = Evaluate(scope, functionTree, targetVariable, dataset); 59 scope.AddVariable(new HeuristicLab.Core.Variable(scope.TranslateName("Quality"), new DoubleData(result))); 59 60 DoubleData quality = GetVariableValue<DoubleData>("Quality", scope, false, false); 61 if(quality == null) { 62 scope.AddVariable(new HeuristicLab.Core.Variable(scope.TranslateName("Quality"), new DoubleData(result))); 63 } else { 64 quality.Data = result; 65 } 66 60 67 return null; 61 68 }
Note: See TracChangeset
for help on using the changeset viewer.