Changeset 1179 for trunk/sources/HeuristicLab.Evolutionary
- Timestamp:
- 01/27/09 13:42:30 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Evolutionary/ChildrenInitializer.cs
r1159 r1179 28 28 29 29 namespace HeuristicLab.Evolutionary { 30 /// <summary> 31 /// Initializes and prepares the children for crossover 32 /// </summary> 30 33 public class ChildrenInitializer : OperatorBase { 34 /// <inheritdoc select="summary"/> 31 35 public override string Description { 32 36 get { … … 35 39 } 36 40 41 /// <summary> 42 /// Initializes a new instance of <see cref="ChildrenInitializer"/> with one variable info: <c>ParentsPerChild</c>. 43 /// </summary> 37 44 public ChildrenInitializer() 38 45 : base() { … … 42 49 } 43 50 51 /// <summary> 52 /// Initializes the children as new scopes and inserts their parents as subscopes. 53 /// </summary> 54 /// <exception cref="InvalidOperationException">Thrown when the number of selected parents is not a natural multiple of <c>ParentsPerChild</c>.</exception> 55 /// <param name="scope">The scope that houses all the selected parents as subscopes.</param> 56 /// <returns><c>null</c>.</returns> 44 57 public override IOperation Apply(IScope scope) { 45 58 int parents = GetVariableValue<IntData>("ParentsPerChild", scope, true).Data;
Note: See TracChangeset
for help on using the changeset viewer.