Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/30/10 22:50:59 (14 years ago)
Author:
cneumuel
Message:

#1215

  • enhanced combinations generator (now with batchruns!)
  • fixed ActualNames for metaopt-alg
  • added penalty for invalid solution-candidates (algs which throw exceptions)
  • migrated to .NET 4.0
File:
1 edited

Legend:

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

    r5144 r5184  
    9595        RangeConstraint = new DoubleValueRange(new DoubleValue(0), (DoubleValue)value, new DoubleValue(0.01));
    9696      } else if (actualValue.ValueDataType == typeof(PercentValue)) {
    97         RangeConstraint = new PercentValueRange(new PercentValue(0), new PercentValue(1), new PercentValue(0.001));
     97        RangeConstraint = new PercentValueRange(new PercentValue(0), new PercentValue(1), new PercentValue(0.01));
    9898      } else if (actualValue.ValueDataType == typeof(BoolValue)) {
    9999        this.IsOptimizable = false; // there is nothing to configure for bools
     
    211211    }
    212212
    213     public string ToParameterInfoString() {
    214       StringBuilder sb = new StringBuilder();
    215       if (this.Optimize) {
    216         if (this.ParameterConfigurations.Count > 0) {
    217           var parameterInfos = new List<string>();
    218           foreach (var pc in this.ParameterConfigurations) {
    219             if (pc.Optimize) parameterInfos.Add(pc.ToParameterInfoString());
    220           }
    221           sb.Append(string.Join(", ", parameterInfos.ToArray()));
    222         }
    223       }
    224       return sb.ToString();
     213    public string ParameterInfoString {
     214      get {
     215        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          }
     224        }
     225        return sb.ToString();
     226      }
    225227    }
    226228
Note: See TracChangeset for help on using the changeset viewer.