Changeset 12223
- Timestamp:
- 03/18/15 16:02:27 (10 years ago)
- Location:
- branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/AlpsSsGeneticAlgorithmMainLoop.cs
r12220 r12223 80 80 var setTargetIndedxToNextInit = new Assigner() { Name = "TargetIndex = NextInit" }; 81 81 var incrementNextInit = new IntCounter() { Name = "Incr. NextInit" }; 82 var checkInitFinished = new Comparator() { Name = "DoInit = NextInit >= PopulationSize" };82 var checkInitFinished = new Comparator() { Name = "DoInit = NextInit < LayerSize" }; 83 83 var workingScopeProcessor = new NamedSubScopeProcessor() { Name = "WorkingScope Processor" }; 84 84 var createRandomIndividual = new SolutionsCreator() { Name = "Create random Individual" }; … … 96 96 var reactivateInit = new Assigner() { Name = "DoInit = true" }; 97 97 var resetNextInit = new Assigner() { Name = "NextInit = 1" }; 98 var resetTargetIndex = new Assigner() { Name = "TargetIndex = 0" };98 var resetTargetIndex = new Assigner() { Name = "TargetIndex = MatingPoolSize" }; 99 99 var tryMoveUp = new AlpsSsMover() { Name = "Try Move Up" }; 100 100 var incrementEvaluations = new IntCounter() { Name = "Incr. EvaluatedSolutions" }; … … 161 161 162 162 checkInitFinished.LeftSideParameter.ActualName = "NextInit"; 163 checkInitFinished.RightSideParameter.ActualName = " PopulationSize";164 checkInitFinished.Comparison = new Comparison(ComparisonType. GreaterOrEqual);163 checkInitFinished.RightSideParameter.ActualName = "LayerSize"; 164 checkInitFinished.Comparison = new Comparison(ComparisonType.Less); 165 165 checkInitFinished.ResultParameter.ActualName = "DoInit"; 166 166 checkInitFinished.Successor = workingScopeProcessor; … … 217 217 218 218 resetTargetIndex.LeftSideParameter.ActualName = "TargetIndex"; 219 resetTargetIndex.RightSideParameter. Value = new IntValue(0);219 resetTargetIndex.RightSideParameter.ActualName = "MatingPoolSize"; 220 220 resetTargetIndex.Successor = createRandomIndividual; 221 221 -
branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/RandomIntAssigner.cs
r12136 r12223 32 32 [StorableClass] 33 33 public class RandomIntAssigner : SingleSuccessorOperator, IStochasticOperator { 34 public LookupParameter<I Item> LeftSideParameter {35 get { return (LookupParameter<I Item>)Parameters["LeftSide"]; }34 public LookupParameter<IntValue> LeftSideParameter { 35 get { return (LookupParameter<IntValue>)Parameters["LeftSide"]; } 36 36 } 37 37 public ValueLookupParameter<IntValue> MinimumParameter { … … 52 52 public RandomIntAssigner() 53 53 : base() { 54 Parameters.Add(new LookupParameter<I Item>("LeftSide", "The parameter whose value gets assigned."));54 Parameters.Add(new LookupParameter<IntValue>("LeftSide", "The parameter whose value gets assigned.")); 55 55 Parameters.Add(new ValueLookupParameter<IntValue>("Minimum", new IntValue(0))); 56 56 Parameters.Add(new ValueLookupParameter<IntValue>("Maximum", new IntValue(10)));
Note: See TracChangeset
for help on using the changeset viewer.