Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/24/16 11:01:41 (8 years ago)
Author:
pkuelzer
Message:

#2558
maxLayer default = 10000 instead of 100000 to avoid overflow
layer creator now wipes evaluated Layersolutions
evaluated Solution data reducer assigns the value instead of summing it
changed default age gap to 20
start on generation 1 to avoid immediate reseeding
fixes also done in islandosAlps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/IslandALPS/IslandALPS/3.3/IslandAlpsAlgorithmMainLoop.cs

    r13686 r13723  
    268268      #endregion
    269269
    270       globalVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>(GenerationsParametername, new IntValue(0)));
     270      globalVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>(GenerationsParametername, new IntValue(1)));
    271271      globalVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>(MigrationsParametername, new IntValue(0)));
    272272
     
    296296      incrementEvaluatedSolutionDr.TargetParameter.ActualName = EvaluatedSolutions.Name;
    297297      incrementEvaluatedSolutionDr.ReductionOperation.Value = new ReductionOperation(ReductionOperations.Sum);
    298       incrementEvaluatedSolutionDr.TargetOperation.Value = new ReductionOperation(ReductionOperations.Sum);
     298      incrementEvaluatedSolutionDr.TargetOperation.Value = new ReductionOperation(ReductionOperations.Assign);
    299299
    300300      setIslandEvaluatedSolutions.ParameterToReduce.ActualName = LayerEvaluatedSolutionsParameter.Name;
     
    535535      var updateLayerNumber = new Assigner {Name = "Layer = OpenLayers"};
    536536      var historyWiper = new ResultsHistoryWiper {Name = "Clear History in Results"};
     537      var evaluatedSolutionsWiper = new Assigner() {Name = "Clear evaluated Solutions"};
    537538      var createChildrenViaCrossover = new AlpsGeneticAlgorithmMainOperator();
    538539      var incrEvaluatedSolutionsForNewLayer = new SubScopesCounter {Name = "Update EvaluatedSolutions"};
     
    569570
    570571      historyWiper.ResultsParameter.ActualName = LayerResultsParametername;
    571       historyWiper.Successor = createChildrenViaCrossover;
     572      historyWiper.Successor = evaluatedSolutionsWiper;
     573      evaluatedSolutionsWiper.LeftSideParameter.ActualName = LayerEvaluatedSolutionsParameterName;
     574      evaluatedSolutionsWiper.RightSideParameter.Value = new IntValue(0);
     575      evaluatedSolutionsWiper.Successor = createChildrenViaCrossover;
    572576
    573577      // Maybe use only crossover and no elitism instead of "default operator"
Note: See TracChangeset for help on using the changeset viewer.