Changeset 368 for trunk/sources
- Timestamp:
- 07/07/08 17:51:09 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Logging/BestSolutionStorer.cs
r364 r368 59 59 } 60 60 } 61 62 IVariable bestSolutionVariable = scope.GetVariable( "BestSolution");61 IVariableInfo qualityInfo = GetVariableInfo("Quality"); 62 IVariable bestSolutionVariable = scope.GetVariable(scope.TranslateName("BestSolution")); 63 63 if(bestSolutionVariable != null) { 64 64 65 double bestQuality = ((IScope)bestSolutionVariable.Value).GetVariableValue<DoubleData>( "Quality", false).Data;65 double bestQuality = ((IScope)bestSolutionVariable.Value).GetVariableValue<DoubleData>(qualityInfo.ActualName, false).Data; 66 66 67 67 // do nothing if the best solution of the current scope is not better than the best solution of the whole run so far. … … 107 107 108 108 private void SetValue(IVariableInfo info, IScope data, IScope scope) { 109 IVariable var = scope.GetVariable(info. FormalName);109 IVariable var = scope.GetVariable(info.ActualName); 110 110 if(var == null) { 111 111 var = new Variable(scope.TranslateName(info.FormalName), data);
Note: See TracChangeset
for help on using the changeset viewer.