Changeset 5328 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding
- Timestamp:
- 01/18/11 17:47:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurationTree.cs
r5313 r5328 214 214 } 215 215 216 public long GetCombinationCount() { 216 /// <summary> 217 /// returns the number of possible parameter combinations 218 /// </summary> 219 /// <param name="max">algorithm stops counting when max is reached. zero for infinite counting</param> 220 /// <returns></returns> 221 public long GetCombinationCount(long max) { 217 222 long cnt = 0; 218 223 foreach (var c in this) { 219 224 cnt++; 225 if (max > 0 && cnt >= max) { 226 return cnt; 227 } 220 228 } 221 229 return cnt;
Note: See TracChangeset
for help on using the changeset viewer.