Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/24/11 01:33:29 (14 years ago)
Author:
cneumuel
Message:

#1215

  • renamed RunsAnalyzer to SolutionCacheAnalyzer
  • only most recent results will stay in cache to avoid memory problems
  • some minor tweaks and bugfixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurations/ParameterConfiguration.cs

    r5340 r5359  
    369369        StringBuilder sb = new StringBuilder();
    370370        if (this.Optimize) {
    371           sb.Append(string.Format("{0}: {1}", parameterName, this.ActualValue.Value != null ? this.ActualValue.Value.ToString() : "null"));
     371          var vc = this.ValueConfigurations[actualValueConfigurationIndex];
     372          if (IsSubclassOfRawGeneric(typeof(ValueTypeValue<>), vc.GetType())) {
     373            // for int, double, bool use the value directly
     374            sb.Append(string.Format("{0}: {1}", parameterName, this.ActualValue.Value != null ? this.ActualValue.Value.ToString() : "null"));
     375          } else {
     376            // for other types use NumberedName (this also uses the Number-Property for otherwise ambiguous ValueConfigurations)
     377            sb.Append(string.Format("{0}: {1}", parameterName, vc.NumberedName));
     378          }
    372379
    373380          if (this.ActualValue.Value is IParameterizedItem) {
Note: See TracChangeset for help on using the changeset viewer.