Changeset 1224
- Timestamp:
- 02/24/09 10:19:56 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection.OffspringSelection/WeightedOffspringFitnessComparer.cs
r1223 r1224 28 28 namespace HeuristicLab.Selection.OffspringSelection { 29 29 /// <summary> 30 /// Analyzes the offspring on whether it is successful or not based on its quality in comparison to its parents' qualities.30 /// Analyzes the offspring on whether it is successful or not based on its quality in comparison to its best and worst parents' qualities. 31 31 /// </summary> 32 32 public class WeightedOffspringFitnessComparer : OperatorBase { … … 34 34 public override string Description { 35 35 get { 36 return @"Compares the quality values of the child with a weighted average of the parents'.36 return @"Compares the quality values of the child with a weighted average of the best and worst parents' qualities. 37 37 Adds a variable SuccessfulChild into the current scope with the result of the comparison."; 38 38 } … … 48 48 AddVariableInfo(new VariableInfo("Quality", "Quality value", typeof(DoubleData), VariableKind.In)); 49 49 AddVariableInfo(new VariableInfo("SuccessfulChild", "True if the child is successful", typeof(BoolData), VariableKind.New)); 50 51 VariableInfo compFactorInfo = new VariableInfo("ComparisonFactor", "Factor for comparing the quality of a child with the qualities of its parents (0 = better than worst parent, 1 = better than best parent)", typeof(DoubleData), VariableKind.In); 52 compFactorInfo.Local = true; 53 AddVariableInfo(compFactorInfo); 54 AddVariable(new Variable("ComparisonFactor", new DoubleData(0.5))); 50 AddVariableInfo(new VariableInfo("ComparisonFactor", "Factor for comparing the quality of a child with the qualities of its parents (0 = better than worst parent, 1 = better than best parent)", typeof(DoubleData), VariableKind.In)); 55 51 } 56 52
Note: See TracChangeset
for help on using the changeset viewer.