Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10591


Ignore:
Timestamp:
03/12/14 21:01:02 (11 years ago)
Author:
mkommend
Message:

#1997: Added reevaluation of all indidviduals after migration to island algorithms and fixed symbolic data analysis evaluators for island algorithms.

Location:
branches/DataAnalysis.IslandAlgorithms
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.DataAnalysis.Symbolic/3.3/SymbolicDataAnalysisIslandGeneticAlgorithm.cs

    r10357 r10591  
    120120      insertionPoint.Successor = islandIndexAssigner;
    121121
    122       //RandomCreator insertionPoint = OperatorGraph.Iterate().OfType<RandomCreator>().Skip(1).First();
    123       //fixedSamplesPartitionCreator.Successor = insertionPoint.Successor;
    124       //insertionPoint.Successor = fixedSamplesPartitionCreator;
     122      ReevaluateImmigrants = true;
     123      ReevaluteElites = true;
    125124
    126125      RegisterParameterEvents();
  • branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.DataAnalysis.Symbolic/3.3/SymbolicDataAnalysisIslandOffspringSelectionGeneticAlgorithm.cs

    r10357 r10591  
    120120      insertionPoint.Successor = islandIndexAssigner;
    121121
     122      ReevaluateImmigrants = true;
     123      ReevaluteElites = true;
     124
    122125      RegisterParameterEvents();
    123126      RecalculateFixedSamplesPartitions();
  • branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithmMainLoop.cs

    r10197 r10591  
    123123    }
    124124
    125     public ValueLookupParameter<BoolValue> ReevaluateImmigrants {
    126       get { return (ValueLookupParameter<BoolValue>)Parameters["ReevaluateImmigrants"]; }
     125    public ValueLookupParameter<BoolValue> ReevaluateIndividualsAfterMigration {
     126      get { return (ValueLookupParameter<BoolValue>)Parameters["ReevaluateIndividualsAfterMigration"]; }
    127127    }
    128128    #endregion
     
    167167      Parameters.Add(new ValueLookupParameter<BoolValue>("Migrate", "Migrate the island?"));
    168168      Parameters.Add(new LookupParameter<BoolValue>("RunAnalysis", "Run Analyzers?"));
    169       Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateImmigrants", "Flag which indicates if inviduals should be reevaluated before they are immigrated."));
     169      Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateIndividualsAfterMigration", "Flag which indicates if inviduals should be reevaluated after migration."));
    170170      #endregion
    171171
     
    217217      Assigner evaluatedSolutionsAssigner2 = new Assigner();
    218218      UniformSubScopesProcessor uniformSubScopesProcessor6 = new UniformSubScopesProcessor();
    219       SubScopesProcessor subScopesProcessor3 = new SubScopesProcessor();
     219      UniformSubScopesProcessor uniformSubScopesProcessor8 = new UniformSubScopesProcessor();
    220220      DataReducer evaluatedSolutionsReducer2 = new DataReducer();
    221221      UniformSubScopesProcessor uniformSubScopesProcessor7 = new UniformSubScopesProcessor();
     
    457457      uniformSubScopesProcessor6.Successor = evaluatedSolutionsReducer2;
    458458      uniformSubScopesProcessor6.Operator = evaluatedSolutionsAssigner2;
     459      evaluatedSolutionsAssigner2.Successor = uniformSubScopesProcessor8;
     460      uniformSubScopesProcessor8.Operator = uniformSubScopesProcessor3;
     461      uniformSubScopesProcessor8.Successor = null;
    459462      evaluatedSolutionsReducer2.Successor = null;
    460       evaluatedSolutionsAssigner2.Successor = subScopesProcessor3;
    461       subScopesProcessor3.Operators.Add(new EmptyOperator());
    462       subScopesProcessor3.Operators.Add(uniformSubScopesProcessor3);
    463463      uniformSubScopesProcessor7.Operator = immigrationReplacer;
    464464      uniformSubScopesProcessor7.Successor = generationsComparator;
  • branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithmMainLoop.cs

    r10155 r10591  
    130130      get { return (LookupParameter<IntValue>)Parameters["EvaluatedSolutions"]; }
    131131    }
    132     public ValueLookupParameter<BoolValue> ReevaluateImmigrants {
    133       get { return (ValueLookupParameter<BoolValue>)Parameters["ReevaluateImmigrants"]; }
     132    public ValueLookupParameter<BoolValue> ReevaluateIndividualsAfterMigration {
     133      get { return (ValueLookupParameter<BoolValue>)Parameters["ReevaluateIndividualsAfterMigration"]; }
    134134    }
    135135    #endregion
     
    177177      Parameters.Add(new ValueLookupParameter<IOperator>("IslandAnalyzer", "The operator used to analyze each island."));
    178178      Parameters.Add(new LookupParameter<IntValue>("EvaluatedSolutions", "The number of times solutions have been evaluated."));
    179       Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateImmigrants", "Flag which indicates if inviduals should be reevaluated before they are immigrated."));
     179      Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateIndividualsAfterMigration", "Flag which indicates if inviduals should be reevaluated after migration."));
    180180      #endregion
    181181
     
    422422      reevaluateImmigrantsBranch.TrueBranch = uniformSubScopesProcessor3;
    423423      uniformSubScopesProcessor3.Operator = subScopesProcessor;
    424       subScopesProcessor.Operators.Add(new EmptyOperator());
     424      subScopesProcessor.Operators.Add(uniformSubScopesProcessor4);
    425425      subScopesProcessor.Operators.Add(uniformSubScopesProcessor4);
    426426      uniformSubScopesProcessor4.Operator = evaluator;
Note: See TracChangeset for help on using the changeset viewer.