Changeset 13723 for branches/IslandALPS/IslandALPS/3.3/Offspring Selection/IslandAlpsOffspringSelectionAlgorithmMainLoop.cs
- Timestamp:
- 03/24/16 11:01:41 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/IslandALPS/IslandALPS/3.3/Offspring Selection/IslandAlpsOffspringSelectionAlgorithmMainLoop.cs
r13686 r13723 294 294 #endregion 295 295 296 globalVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>(GenerationsParametername, new IntValue( 0)));296 globalVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>(GenerationsParametername, new IntValue(1))); 297 297 globalVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>(MigrationsParametername, new IntValue(0))); 298 298 … … 322 322 incrementEvaluatedSolutionDr.TargetParameter.ActualName = EvaluatedSolutions.Name; 323 323 incrementEvaluatedSolutionDr.ReductionOperation.Value = new ReductionOperation(ReductionOperations.Sum); 324 incrementEvaluatedSolutionDr.TargetOperation.Value = new ReductionOperation(ReductionOperations. Sum);324 incrementEvaluatedSolutionDr.TargetOperation.Value = new ReductionOperation(ReductionOperations.Assign); 325 325 326 326 setIslandEvaluatedSolutions.ParameterToReduce.ActualName = LayerEvaluatedSolutionsParameter.Name; … … 577 577 var updateLayerNumber = new Assigner {Name = "Layer = OpenLayers"}; 578 578 var historyWiper = new ResultsHistoryWiper {Name = "Clear History in Results"}; 579 var evaluatedSolutionsWiper = new Assigner() { Name = "Clear evaluated Solutions" }; 579 580 var createChildrenViaCrossover = new AlpsOffspringSelectionGeneticAlgorithmMainOperator(); 580 581 var incrEvaluatedSolutionsForNewLayer = new SubScopesCounter {Name = "Update EvaluatedSolutions"}; … … 612 613 613 614 historyWiper.ResultsParameter.ActualName = "LayerResults"; 614 historyWiper.Successor = createChildrenViaCrossover; 615 historyWiper.Successor = evaluatedSolutionsWiper; 616 evaluatedSolutionsWiper.LeftSideParameter.ActualName = LayerEvaluatedSolutionsParameterName; 617 evaluatedSolutionsWiper.RightSideParameter.Value = new IntValue(0); 618 evaluatedSolutionsWiper.Successor = createChildrenViaCrossover; 615 619 616 620 // Maybe use only crossover and no elitism instead of "default operator"
Note: See TracChangeset
for help on using the changeset viewer.