Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/23/11 12:47:33 (13 years ago)
Author:
cneumuel
Message:

#1215

  • changed ordering of parameter combinations to make them better readable
  • changed handling of invalid parameter settings from penalty approach to repair approach
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ValueConfigurations/ValueConfiguration.cs

    r5340 r5357  
    214214      get {
    215215        StringBuilder sb = new StringBuilder();
    216         if (this.Optimize) {
    217           if (this.ParameterConfigurations.Count > 0) {
    218             var parameterInfos = new List<string>();
    219             foreach (var pc in this.ParameterConfigurations) {
    220               if (pc.Optimize) parameterInfos.Add(pc.ParameterInfoString);
    221             }
    222             sb.Append(string.Join(", ", parameterInfos.ToArray()));
    223           }
     216        if (this.Optimize && this.ParameterConfigurations.Count > 0) {
     217          var parameterInfos = new List<string>();
     218          foreach (var pc in this.ParameterConfigurations) {
     219            if (pc.Optimize) parameterInfos.Add(pc.ParameterInfoString);
     220          }
     221          sb.Append(string.Join(", ", parameterInfos.ToArray()));
    224222        }
    225223        return sb.ToString();
     
    273271      var list = new List<IOptimizable>();
    274272      foreach (var pc in ParameterConfigurations) {
    275         if(pc.Optimize) {
    276           if(pc.ValueConfigurations.CheckedItems.Count() > 1) list.Add(pc); // only add if there are more than 1 choices. otherwise it makes no sense to optimize which VC is selected
     273        if (pc.Optimize) {
     274          if (pc.ValueConfigurations.CheckedItems.Count() > 1) list.Add(pc); // only add if there are more than 1 choices. otherwise it makes no sense to optimize which VC is selected
    277275          list.AddRange(pc.GetAllOptimizables());
    278276        }
Note: See TracChangeset for help on using the changeset viewer.