Changeset 4982 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encodings/ParameterConfigurations
- Timestamp:
- 11/28/10 23:03:05 (14 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3
- Property svn:ignore
-
old new 2 2 bin 3 3 obj 4 HeuristicLabProblemsMetaOptimizationPlugin.cs
-
- Property svn:ignore
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encodings/ParameterConfigurations/ParameterConfiguration.cs
r4981 r4982 117 117 118 118 private void PopulateValueConfigurations() { 119 foreach (IItem item in this.validValues) { 120 this.ValueConfigurations.Add(new ValueConfiguration(item, item.GetType()), false); 119 foreach (IItem validValue in this.validValues) { 120 IItem val; 121 if (actualValueConfiguration.ConstrainedValue.Value != null && actualValueConfiguration.ConstrainedValue.ValueDataType == validValue.GetType()) { 122 val = actualValueConfiguration.ConstrainedValue.Value; // use existing value for that type (if available) 123 } else { 124 val = validValue; 125 } 126 this.ValueConfigurations.Add(new ValueConfiguration(val, val.GetType()), true); 121 127 } 122 128 }
Note: See TracChangeset
for help on using the changeset viewer.