Changeset 9242 for branches/LearningClassifierSystems/HeuristicLab.Algorithms.LearningClassifierSystems/3.3/LearningClassifierSystemMainLoop.cs
- Timestamp:
- 02/25/13 12:37:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Algorithms.LearningClassifierSystems/3.3/LearningClassifierSystemMainLoop.cs
r9226 r9242 69 69 get { return (ValueLookupParameter<IOperator>)Parameters["FinalAnalyzer"]; } 70 70 } 71 public ValueLookupParameter<IntValue> AnalyzeInIterationParameter { 72 get { return (ValueLookupParameter<IntValue>)Parameters["AnalyzeInIteration"]; } 73 } 71 74 #endregion 72 75 … … 114 117 Parameters.Add(new ValueLookupParameter<IOperator>("Analyzer", "The operator used to analyze each generation.")); 115 118 Parameters.Add(new ValueLookupParameter<IOperator>("FinalAnalyzer", "The operator used to analyze the last generation.")); 119 Parameters.Add(new ValueLookupParameter<IntValue>("AnalyzeInIteration", "")); 116 120 #endregion 117 121 … … 119 123 VariableCreator variableCreator = new VariableCreator(); 120 124 ResultsCollector resultsCollector = new ResultsCollector(); 125 ModuloOperator moduloOperator = new ModuloOperator(); 126 Comparator analyzerComparator = new Comparator(); 127 ConditionalBranch analyzerConditionalBranch = new ConditionalBranch(); 121 128 Placeholder analyzer = new Placeholder(); 122 129 Placeholder finalAnalyzer = new Placeholder(); … … 183 190 resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("Iteration")); 184 191 resultsCollector.ResultsParameter.ActualName = "Results"; 192 193 moduloOperator.LeftSideParameter.ActualName = "Iteration"; 194 moduloOperator.RightSideParameter.ActualName = AnalyzeInIterationParameter.ActualName; 195 moduloOperator.ResultParameter.ActualName = "ModuloResult"; 196 197 analyzerComparator.LeftSideParameter.ActualName = "ModuloResult"; 198 analyzerComparator.RightSideParameter.Value = new IntValue(0); 199 analyzerComparator.ResultParameter.ActualName = "DoAnalyzing"; 200 201 analyzerConditionalBranch.ConditionParameter.ActualName = "DoAnalyzing"; 185 202 186 203 analyzer.Name = "Analyzer"; … … 403 420 deletionSelectorAfterGA.Successor = leftReducerAfterGA; 404 421 leftReducerAfterGA.Successor = iterationCounter; 405 iterationCounter.Successor = analyzer; 406 analyzer.Successor = maxIterationsComparator; 422 iterationCounter.Successor = moduloOperator; 423 moduloOperator.Successor = analyzerComparator; 424 analyzerComparator.Successor = analyzerConditionalBranch; 425 analyzerConditionalBranch.Successor = maxIterationsComparator; 426 analyzerConditionalBranch.TrueBranch = analyzer; 407 427 #endregion 408 428 }
Note: See TracChangeset
for help on using the changeset viewer.