Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/26/08 10:29:34 (16 years ago)
Author:
vdorfer
Message:

Created API documentation for HeuristicLab.Selection namespace (#331)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Selection/TournamentSelector.cs

    r77 r817  
    2727
    2828namespace HeuristicLab.Selection {
     29  /// <summary>
     30  /// Moves or copies a defined number of the best sub scopes from a source scope to a target scope.
     31  /// </summary>
    2932  public class TournamentSelector : StochasticSelectorBase {
     33    /// <inheritdoc select="summary"/>
    3034    public override string Description {
    3135      get { return @"TODO\r\nOperator description still missing ..."; }
    3236    }
    3337
     38    /// <summary>
     39    /// Initializes a new instance of <see cref="TournamentSelector"/> with three variable infos
     40    /// (<c>Maximization</c>, <c>Quality</c> and <c>GroupSize</c>, being a local variable and set to
     41    /// <c>2</c>) with <c>CopySelected</c> set to <c>true</c>.
     42    /// </summary>
    3443    public TournamentSelector() {
    3544      AddVariableInfo(new VariableInfo("Maximization", "Maximization problem", typeof(BoolData), VariableKind.In));
     
    4150    }
    4251
     52    /// <summary>
     53    /// Copies or moves the best sub scopes from the given <paramref name="source"/> to the specified
     54    /// <paramref name="target"/>.
     55    /// </summary>
     56    /// <exception cref="InvalidOperationException">Thrown when no source sub scopes are available.</exception>
     57    /// <param name="random">The random number generator.</param>
     58    /// <param name="source">The source scope from where to copy/move the sub scopes.</param>
     59    /// <param name="selected">The number of sub scopes to copy/move.</param>
     60    /// <param name="target">The target scope where to add the sub scopes.</param>
     61    /// <param name="copySelected">Boolean flag whether the sub scopes shall be moved or copied.</param>
    4362    protected override void Select(IRandom random, IScope source, int selected, IScope target, bool copySelected) {
    4463      IVariableInfo qualityInfo = GetVariableInfo("Quality");
Note: See TracChangeset for help on using the changeset viewer.