Changeset 5303 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ValueConfigurations
- Timestamp:
- 01/17/11 01:04:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ValueConfigurations/ValueConfiguration.cs
r5277 r5303 269 269 } 270 270 } 271 272 public List<IOptimizable> GetAllOptimizables() { 273 var list = new List<IOptimizable>(); 274 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 277 list.AddRange(pc.GetAllOptimizables()); 278 } 279 } 280 return list; 281 } 271 282 } 272 283 }
Note: See TracChangeset
for help on using the changeset viewer.