- Timestamp:
- 11/02/15 15:59:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/LayerReseeder.cs
r13095 r13096 31 31 32 32 namespace HeuristicLab.Algorithms.ALPS { 33 [Item("LayerReseeder", " ")]33 [Item("LayerReseeder", "An operator that encapsulates the reseeding of the lowest layer in ALPS.")] 34 34 [StorableClass] 35 35 public sealed class LayerReseeder : SingleSuccessorOperator, IOperatorGraphOperator { … … 81 81 82 82 var subScopesCounter = new SubScopesCounter(); 83 //var continuousReseedingBranch = new ConditionalBranch() { Name = "ContinuousReseeding?" };84 //var reseedingIntervalCalculator = new ExpressionCalculator() { Name = "DoReseeding = Generation % AgeGap == 0" };85 //var doReseedingBranch = new ConditionalBranch() { Name = "DoReseeding?" };86 83 var numberOfReplacedCalculator = new ExpressionCalculator() { Name = "NumberOfReplaced = if ContinuousReseeding then max(LayerPopulationSize - (PopulationSize - PopulationSize / AgeGap), 0) else PopulationSize" }; 87 84 var numberOfNewIndividualsCalculator = new ExpressionCalculator() { Name = "NumberOfNewIndividuals = PopulationSize - (LayerPopulatioSize - NumberOfReplaced)" }; … … 96 93 var subScopesCounter2 = new SubScopesCounter(); 97 94 98 //OperatorGraph.InitialOperator = continuousReseedingBranch;99 95 OperatorGraph.InitialOperator = subScopesCounter; 100 96 … … 102 98 subScopesCounter.AccumulateParameter.Value = new BoolValue(false); 103 99 subScopesCounter.Successor = numberOfReplacedCalculator; 104 105 //continuousReseedingBranch.ConditionParameter.ActualName = "ContinuousReseeding";106 //continuousReseedingBranch.TrueBranch = numberOfChildrenCalculator;107 //continuousReseedingBranch.FalseBranch = reseedingIntervalCalculator;108 109 //reseedingIntervalCalculator.CollectedValues.Add(new LookupParameter<IntValue>("Generation"));110 //reseedingIntervalCalculator.CollectedValues.Add(new LookupParameter<IntValue>("AgeGap"));111 //reseedingIntervalCalculator.ExpressionResultParameter.ActualName = "DoReseeding";112 //reseedingIntervalCalculator.ExpressionParameter.Value = new StringValue("Generation AgeGap % 0 ==");113 //reseedingIntervalCalculator.Successor = doReseedingBranch;114 115 //doReseedingBranch.ConditionParameter.ActualName = "DoReseeding";116 //doReseedingBranch.TrueBranch = numberOfChildrenCalculator;117 100 118 101 numberOfReplacedCalculator.CollectedValues.Add(new LookupParameter<BoolValue>("ContinuousReseeding"));
Note: See TracChangeset
for help on using the changeset viewer.