Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/15 11:47:44 (8 years ago)
Author:
pfleck
Message:

#2269

  • Added some missing wiring.
  • Unified some parameter properties.
  • Removed some operators.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithmMainLoop.cs

    r13124 r13127  
    9898      get { return (IScopeTreeLookupParameter<DoubleValue>)Parameters["Age"]; }
    9999    }
     100    public IValueLookupParameter<IntValue> AgeGapParameter {
     101      get { return (IValueLookupParameter<IntValue>)Parameters["AgeGap"]; }
     102    }
    100103    public IValueLookupParameter<DoubleValue> AgeInheritanceParameter {
    101104      get { return (IValueLookupParameter<DoubleValue>)Parameters["AgeInheritance"]; }
     
    110113    public IValueLookupParameter<BoolValue> ReduceToPopulationSizeParameter {
    111114      get { return (IValueLookupParameter<BoolValue>)Parameters["ReduceToPopulationSize"]; }
     115    }
     116
     117    public IValueLookupParameter<IOperator> TerminatorParameter {
     118      get { return (IValueLookupParameter<IOperator>)Parameters["Terminator"]; }
    112119    }
    113120    #endregion
     
    147154
    148155      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Age", "The age of individuals."));
     156      Parameters.Add(new ValueLookupParameter<IntValue>("AgeGap", "The frequency of reseeding the lowest layer and scaling factor for the age-limits for the layers."));
    149157      Parameters.Add(new ValueLookupParameter<DoubleValue>("AgeInheritance", "A weight that determines the age of a child after crossover based on the older (1.0) and younger (0.0) parent."));
    150158      Parameters.Add(new ValueLookupParameter<IntArray>("AgeLimits", "The maximum ages for the Layers."));
    151159
    152160      Parameters.Add(new ValueLookupParameter<IntValue>("MatingPoolRange", "The range of sub - populations used for creating a mating pool. (1 = current + previous sub-population)"));
    153       Parameters.Add(new ValueLookupParameter<BoolValue>("ReduceToPopulationSize", "Reduce the LayerPopulationSize after elder migration to PopulationSize"));
     161      Parameters.Add(new ValueLookupParameter<BoolValue>("ReduceToPopulationSize", "Reduce the CurrentPopulationSize after elder migration to PopulationSize"));
     162
     163      Parameters.Add(new ValueLookupParameter<IOperator>("Terminator", "The termination criteria that defines if the algorithm should continue or stop"));
    154164
    155165
     
    183193      initLayerAnalyzerProcessor.Successor = initAnalyzerPlaceholder;
    184194
    185       layerVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>("LayerEvaluatedSolutions"));
     195      layerVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Layer", new IntValue(0)));
    186196      layerVariableCreator.CollectedValues.Add(new ValueParameter<ResultCollection>("LayerResults"));
    187197      layerVariableCreator.Successor = initLayerAnalyzerPlaceholder;
     
    253263      analyzerPlaceholder.Successor = termination;
    254264
     265      termination.TerminatorParameter.ActualName = TerminatorParameter.Name;
    255266      termination.ContinueBranch = matingPoolCreator;
    256267    }
     
    273284      selectorProsessor.Operator = eldersSelector;
    274285      selectorProsessor.Successor = shiftToRightMigrator;
     286
     287      eldersSelector.AgeParameter.ActualName = AgeParameter.Name;
     288      eldersSelector.AgeLimitsParameter.ActualName = AgeLimitsParameter.Name;
     289      eldersSelector.NumberOfLayersParameter.ActualName = NumberOfLayersParameter.Name;
     290      eldersSelector.LayerParameter.ActualName = "Layer";
     291      eldersSelector.Successor = null;
    275292
    276293      shiftToRightMigrator.ClockwiseMigrationParameter.Value = new BoolValue(true);
     
    391408      reseeder.OperatorGraph.InitialOperator = reseedingController;
    392409
     410      reseedingController.GenerationsParameter.ActualName = "Generations";
     411      reseedingController.AgeGapParameter.ActualName = AgeGapParameter.Name;
    393412      reseedingController.FirstLayerOperator = removeIndividuals;
     413      reseedingController.Successor = null;
    394414
    395415      removeIndividuals.Successor = createIndividuals;
Note: See TracChangeset for help on using the changeset viewer.