Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/04/11 01:29:43 (14 years ago)
Author:
mkommend
Message:

#1402 - Implemented IOptmizer.NestedOptimizers and adapted optimizer views to stop their content only if no way to display the content is available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.3/CrossValidation.cs

    r5287 r5419  
    165165    }
    166166
     167    public IEnumerable<IOptimizer> NestedOptimizers {
     168      get {
     169        if (Algorithm != null) yield return Algorithm;
     170        if (clonedAlgorithms != null) {
     171          foreach (IAlgorithm alg in ClonedAlgorithms) {
     172            yield return alg;
     173            foreach (IOptimizer nested in alg.NestedOptimizers)
     174              yield return nested;
     175          }
     176        }
     177      }
     178    }
     179
    167180    [Storable]
    168181    private ResultCollection results;
Note: See TracChangeset for help on using the changeset viewer.