Changeset 12150 for branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/AlpsSsGeneticAlgorithmMainLoop.cs
- Timestamp:
- 03/06/15 13:24:42 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/AlpsSsGeneticAlgorithmMainLoop.cs
r12142 r12150 72 72 var variableCreator = new VariableCreator() { Name = "Initialize" }; 73 73 var randomScopeProcessor = new RandomLayerProcessor() { Name = "Select a layer" }; 74 var layerPopulationSizeCounter = new SubScopesCounter() { Name = "Count LayerPopulationSize" }; 74 75 var isLayerZeroComperator = new Comparator() { Name = "IsLayerZero = Layer == 0" }; 75 76 var isLayerZeroBranch = new ConditionalBranch() { Name = "IsLayerZero?" }; … … 97 98 var tryMoveUp = new AlpsSsMover() { Name = "Try Move Up" }; 98 99 var removeWorkingScope = new LeftReducer() { Name = "Remove Working Scope" }; 100 var incrementEvaluations = new IntCounter() { Name = "incr. EvaluatedSolutions" }; 99 101 var incrIterations = new IntCounter() { Name = "Incr. Iterations" }; 100 102 var layerAnalyzerProcessor = new UniformSubScopesProcessor(); … … 116 118 variableCreator.Successor = randomScopeProcessor; 117 119 118 randomScopeProcessor.Operator = isLayerZeroComperator; 120 randomScopeProcessor.Operator = layerPopulationSizeCounter; 121 randomScopeProcessor.Successor = incrIterations; 122 123 layerPopulationSizeCounter.ValueParameter.ActualName = "LayerPopulationSize"; 124 layerPopulationSizeCounter.AccumulateParameter.Value = new BoolValue(false); 125 layerPopulationSizeCounter.Successor = isLayerZeroComperator; 119 126 120 127 isLayerZeroComperator.LeftSideParameter.ActualName = "Layer"; … … 164 171 selectRandomTargetIndex.LeftSideParameter.ActualName = "TargetIndex"; 165 172 selectRandomTargetIndex.MinimumParameter.Value = new IntValue(0); 166 selectRandomTargetIndex.MaximumParameter.ActualName = " PopulationSize";173 selectRandomTargetIndex.MaximumParameter.ActualName = "LayerPopulationSize"; 167 174 selectRandomTargetIndex.MaximumParameter.Value = null; 168 175 selectRandomTargetIndex.Successor = copyLayer; … … 178 185 179 186 matingPoolSize.ValueParameter.ActualName = "MatingPoolSize"; 187 matingPoolSize.AccumulateParameter.Value = new BoolValue(false); 180 188 matingPoolSize.Successor = matingPoolSizeMin2; 181 189 … … 206 214 tryMoveUp.Successor = removeWorkingScope; 207 215 208 removeWorkingScope.Successor = incrIterations; 216 removeWorkingScope.Successor = incrementEvaluations; 217 218 incrementEvaluations.Increment = new IntValue(1); 219 incrementEvaluations.ValueParameter.ActualName = "EvaluatedSolutions"; 209 220 210 221 incrIterations.ValueParameter.ActualName = "Iterations";
Note: See TracChangeset
for help on using the changeset viewer.