- Timestamp:
- 11/26/08 10:29:34 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection/TournamentSelector.cs
r77 r817 27 27 28 28 namespace 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> 29 32 public class TournamentSelector : StochasticSelectorBase { 33 /// <inheritdoc select="summary"/> 30 34 public override string Description { 31 35 get { return @"TODO\r\nOperator description still missing ..."; } 32 36 } 33 37 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> 34 43 public TournamentSelector() { 35 44 AddVariableInfo(new VariableInfo("Maximization", "Maximization problem", typeof(BoolData), VariableKind.In)); … … 41 50 } 42 51 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> 43 62 protected override void Select(IRandom random, IScope source, int selected, IScope target, bool copySelected) { 44 63 IVariableInfo qualityInfo = GetVariableInfo("Quality");
Note: See TracChangeset
for help on using the changeset viewer.