Changeset 5419 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 02/04/11 01:29:43 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/Algorithm.cs ¶
r5287 r5419 23 23 using System.Collections.Generic; 24 24 using System.Drawing; 25 using System.Linq; 25 26 using HeuristicLab.Collections; 26 27 using HeuristicLab.Common; … … 120 121 } 121 122 123 public virtual IEnumerable<IOptimizer> NestedOptimizers { 124 get { return Enumerable.Empty<IOptimizer>(); } 125 } 126 122 127 protected Algorithm() 123 128 : base() { -
TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/BatchRun.cs ¶
r5409 r5419 137 137 } 138 138 139 public IEnumerable<IOptimizer> NestedOptimizers { 140 get { 141 if (Optimizer == null) yield break; 142 143 yield return Optimizer; 144 foreach (IOptimizer opt in Optimizer.NestedOptimizers) 145 yield return opt; 146 } 147 } 148 139 149 private bool stopPending; 140 150 -
TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/Experiment.cs ¶
r5300 r5419 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Drawing; 24 25 using System.Linq; … … 91 92 } 92 93 94 public IEnumerable<IOptimizer> NestedOptimizers { 95 get { 96 if (Optimizers == null) yield break; 97 98 foreach (IOptimizer opt in Optimizers) { 99 yield return opt; 100 foreach (IOptimizer nestedOpt in opt.NestedOptimizers) 101 yield return nestedOpt; 102 } 103 } 104 } 105 93 106 private bool stopPending; 94 107 -
TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/Interfaces/IOptimizer.cs ¶
r4068 r5419 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using HeuristicLab.Core; 23 24 … … 30 31 31 32 void Prepare(bool clearRuns); 33 34 IEnumerable<IOptimizer> NestedOptimizers { get; } 32 35 } 33 36 }
Note: See TracChangeset
for help on using the changeset viewer.