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