- Timestamp:
- 01/16/09 11:24:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection.OffspringSelection/OffspringSelector.cs
r301 r1153 27 27 28 28 namespace HeuristicLab.Selection.OffspringSelection { 29 /// <summary> 30 /// Selects successful and also according to the selection pressure some unsuccessful children. 31 /// </summary> 29 32 public class OffspringSelector : OperatorBase { 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="OffspringSelector"/> with seven variable infos 40 /// (<c>SuccessfulChild</c>, <c>SelectionPressureLimit</c>, <c>SuccessRatioLimit</c>, 41 /// <c>SelectionPressure</c>, <c>SuccessRatio</c>, <c>GoodChildren</c> and <c>BadChildren</c>). 42 /// </summary> 34 43 public OffspringSelector() { 35 44 AddVariableInfo(new VariableInfo("SuccessfulChild", "True if the child was successful", typeof(BoolData), VariableKind.In)); … … 42 51 } 43 52 53 /// <summary> 54 /// Selects successful children and also some bad ones depending on the selection 55 /// pressure out of a population. 56 /// </summary> 57 /// <param name="scope">The current scope of the parents and the children.</param> 58 /// <returns>The next operation or null.</returns> 44 59 public override IOperation Apply(IScope scope) { 45 60 double selectionPressureLimit = GetVariableValue<DoubleData>("SelectionPressureLimit", scope, true).Data;
Note: See TracChangeset
for help on using the changeset viewer.