Changeset 1153 for trunk/sources/HeuristicLab.Selection.OffspringSelection
- Timestamp:
- 01/16/09 11:24:03 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Selection.OffspringSelection
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection.OffspringSelection/HeuristicLabSelectionOffspringSelectionPlugin.cs
r582 r1153 26 26 27 27 namespace HeuristicLab.Selection.OffspringSelection { 28 /// <summary> 29 /// Plugin class for HeuristicLab.Selection.OffspringSelection plugin. 30 /// </summary> 28 31 [ClassInfo(Name = "HeuristicLab.Selection.OffspringSelection-3.2")] 29 32 [PluginFile(Filename = "HeuristicLab.Selection.OffspringSelection-3.2.dll", Filetype = PluginFileType.Assembly)] -
trunk/sources/HeuristicLab.Selection.OffspringSelection/OffspringAnalyzer.cs
r806 r1153 27 27 28 28 namespace HeuristicLab.Selection.OffspringSelection { 29 /// <summary> 30 /// Analyzes the offspring in a given scope whether it is successful or not. 31 /// </summary> 29 32 public class OffspringAnalyzer : 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="OffspringAnalyzer"/> with six variable infos 40 /// (<c>Maximization</c>, <c>Quality</c>, <c>ParentQualities</c>, <c>SuccessfulChild</c>, 41 /// <c>ComparisonFactor</c> and <c>ParentsCount</c>). 42 /// </summary> 34 43 public OffspringAnalyzer() { 35 44 AddVariableInfo(new VariableInfo("Maximization", "Problem is a maximization problem", typeof(BoolData), VariableKind.In)); … … 48 57 } 49 58 59 /// <summary> 60 /// Analyzes the offspring in the given scope whether the children are successful or not. 61 /// </summary> 62 /// <exception cref="InvalidOperationException">Thrown when <c>ParentsCount</c> smaller than 1.</exception> 63 /// <exception cref="InvalidOperationException">Thrown when the number of children is not constant or 64 /// smaller than 1.</exception> 65 /// <param name="scope">The scope whose offspring should be analyzed.</param> 66 /// <returns>The next operation or null.</returns> 50 67 public override IOperation Apply(IScope scope) { 51 68 bool maximize = GetVariableValue<BoolData>("Maximization", scope, true).Data; -
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.