- Timestamp:
- 10/23/16 19:31:18 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainLoop.cs
r14185 r14353 162 162 Comparator maxSelectionPressureComparator = new Comparator(); 163 163 Comparator maxEvaluatedSolutionsComparator = new Comparator(); 164 Comparator maxSolutionQualityComparator = new Comparator(); 164 165 Placeholder comparisonFactorModifier = new Placeholder(); 165 166 Placeholder analyzer2 = new Placeholder(); … … 167 168 ConditionalBranch conditionalBranch2 = new ConditionalBranch(); 168 169 ConditionalBranch conditionalBranch3 = new ConditionalBranch(); 170 ConditionalBranch conditionalBranch4 = new ConditionalBranch(); 169 171 170 172 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Generations", new IntValue(0))); // Class OffspringSelectionGeneticAlgorithm expects this to be called Generations … … 223 225 maxEvaluatedSolutionsComparator.RightSideParameter.ActualName = "MaximumEvaluatedSolutions"; 224 226 227 maxSolutionQualityComparator.Comparison = new Comparison(ComparisonType.GreaterOrEqual); 228 maxSolutionQualityComparator.LeftSideParameter.ActualName = "MaximumQuality"; 229 maxSolutionQualityComparator.ResultParameter.ActualName = "TerminateMaximumQuality"; 230 maxSolutionQualityComparator.RightSideParameter.ActualName = "BestQuality"; 231 225 232 comparisonFactorModifier.Name = "Update ComparisonFactor (placeholder)"; 226 233 comparisonFactorModifier.OperatorParameter.ActualName = ComparisonFactorModifierParameter.Name; … … 237 244 conditionalBranch3.Name = "MaximumEvaluatedSolutions reached?"; 238 245 conditionalBranch3.ConditionParameter.ActualName = "TerminateEvaluatedSolutions"; 246 247 conditionalBranch4.Name = "MaximumQuality reached?"; 248 conditionalBranch3.ConditionParameter.ActualName = "TerminateMaximumQuality"; 239 249 #endregion 240 250 … … 249 259 maxGenerationsComparator.Successor = maxSelectionPressureComparator; 250 260 maxSelectionPressureComparator.Successor = maxEvaluatedSolutionsComparator; 251 maxEvaluatedSolutionsComparator.Successor = comparisonFactorModifier; 261 maxEvaluatedSolutionsComparator.Successor = maxSolutionQualityComparator; 262 maxSolutionQualityComparator.Successor = comparisonFactorModifier; 252 263 comparisonFactorModifier.Successor = analyzer2; 253 264 analyzer2.Successor = conditionalBranch1; … … 258 269 conditionalBranch2.TrueBranch = null; 259 270 conditionalBranch2.Successor = null; 260 conditionalBranch3.FalseBranch = mainOperator;271 conditionalBranch3.FalseBranch = conditionalBranch4; 261 272 conditionalBranch3.TrueBranch = null; 262 273 conditionalBranch3.Successor = null; 274 conditionalBranch4.FalseBranch = mainOperator; 275 conditionalBranch4.TrueBranch = null; 276 conditionalBranch4.Successor = null; 263 277 #endregion 264 278 }
Note: See TracChangeset
for help on using the changeset viewer.