Changeset 13113 for branches/ALPS
- Timestamp:
- 11/03/15 17:48:37 (9 years ago)
- Location:
- branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithm.cs
r13110 r13113 300 300 var globalRandomCreator = new RandomCreator(); 301 301 var layer0Creator = new SubScopesCreator() { Name = "Create Layer Zero" }; 302 var layer0Processor = new UniformSubScopesProcessor();302 var layer0Processor = new SubScopesProcessor(); 303 303 var localRandomCreator = new LocalRandomCreator(); 304 304 var layerVariableCreator = new VariableCreator(); … … 324 324 layer0Creator.Successor = layer0Processor; 325 325 326 layer0Processor.Operator = localRandomCreator;326 layer0Processor.Operators.Add(localRandomCreator); 327 327 layer0Processor.Successor = initializeGlobalEvaluatedSolutions; 328 328 -
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithmMainLoop.cs
r13111 r13113 79 79 var resultsCollector = new ResultsCollector(); 80 80 var matingPoolCreator = new MatingPoolCreator() { Name = "Create Mating Pools" }; 81 var matingPoolProcessor = new UniformSubScopesProcessor() ;81 var matingPoolProcessor = new UniformSubScopesProcessor() { Name = "Process Mating Pools" }; 82 82 var initializeLayer = new Assigner() { Name = "Reset LayerEvaluatedSolutions" }; 83 83 var mainOperator = AlpsGeneticAlgorithmMainOperator.Create(); … … 95 95 96 96 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Generations", new IntValue(0))); 97 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("GenerationsSinceLastRefresh", new IntValue(0)));98 97 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("OpenLayers", new IntValue(1))); 99 98 variableCreator.Successor = initLayerAnalyzerProcessor; … … 159 158 var selectorProsessor = new UniformSubScopesProcessor(); 160 159 var eldersSelector = new EldersSelector(); 161 var shiftToRightMigrator = new UnidirectionalRingMigrator() ;160 var shiftToRightMigrator = new UnidirectionalRingMigrator() { Name = "Shift elders to next Layer" }; 162 161 var mergingProsessor = new UniformSubScopesProcessor(); 163 162 var mergingReducer = new MergingReducer(); -
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithmMainOperator.cs
r13096 r13113 40 40 41 41 // Operator starts with calculating number of selected scopes base on plus/comma-selection replacement scheme 42 var numberOfSelectedSubScopesCalculator = new ExpressionCalculator() { Name = "NumberOfSelectedSubScopes = 2 * (PopulationSize - if PlusSelection then 0 else Elites)" };42 var numberOfSelectedSubScopesCalculator = new ExpressionCalculator() { Name = "NumberOfSelectedSubScopes = 2 * (PopulationSize - (PlusSelection ? 0 : Elites))" }; 43 43 var replacementBranch = new ConditionalBranch() { Name = "PlusSelection?" }; 44 44
Note: See TracChangeset
for help on using the changeset viewer.