- Timestamp:
- 04/03/11 00:53:16 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimization.cs
r5893 r5935 179 179 randomCreator.Successor = variableCreator; 180 180 181 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>(" CurrentIteration", new IntValue(0)));181 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Iterations", new IntValue(0))); 182 182 variableCreator.Successor = currentInertiaAssigner; 183 183 … … 300 300 foreach (IDiscreteDoubleValueModifier updater in InertiaUpdaterParameter.ValidValues) { 301 301 updater.EndIndexParameter.ActualName = MaxIterationsParameter.Name; 302 updater.EndIndexParameter.Hidden = true; 302 updater.EndIndexParameter.Hidden = true; 303 303 updater.StartIndexParameter.Value = new IntValue(0); 304 304 updater.StartIndexParameter.Hidden = true; 305 updater.IndexParameter.ActualName = " CurrentIteration";305 updater.IndexParameter.ActualName = "Iterations"; 306 306 updater.ValueParameter.ActualName = "CurrentInertia"; 307 307 updater.StartValueParameter.Value = new DoubleValue(1); -
trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimizationMainLoop.cs
r5866 r5935 127 127 UniformSubScopesProcessor evaluationProcessor = new UniformSubScopesProcessor(); 128 128 Placeholder swarmUpdater = new Placeholder(); 129 IntCounter currentIterationCounter = new IntCounter();130 Comparator currentIterationComparator = new Comparator();129 IntCounter iterationsCounter = new IntCounter(); 130 Comparator iterationsComparator = new Comparator(); 131 131 ConditionalBranch conditionalBranch = new ConditionalBranch(); 132 132 Placeholder inertiaUpdaterPlaceholder = new Placeholder(); … … 177 177 inertiaUpdaterPlaceholder.Name = "(Inertia Updater)"; 178 178 inertiaUpdaterPlaceholder.OperatorParameter.ActualName = InertiaUpdaterParameter.ActualName; 179 inertiaUpdaterPlaceholder.Successor = currentIterationCounter;180 181 currentIterationCounter.Name = "CurrentIteration++";182 currentIterationCounter.ValueParameter.ActualName = "CurrentIteration";183 currentIterationCounter.Successor = currentIterationComparator;184 185 currentIterationComparator.LeftSideParameter.ActualName = "CurrentIteration";186 currentIterationComparator.Comparison = new Comparison(ComparisonType.Less);187 currentIterationComparator.RightSideParameter.ActualName = "MaxIterations";188 currentIterationComparator.ResultParameter.ActualName = "ContinueIteration";189 currentIterationComparator.Successor = conditionalBranch;179 inertiaUpdaterPlaceholder.Successor = iterationsCounter; 180 181 iterationsCounter.Name = "Iterations++"; 182 iterationsCounter.ValueParameter.ActualName = "Iterations"; 183 iterationsCounter.Successor = iterationsComparator; 184 185 iterationsComparator.LeftSideParameter.ActualName = "Iterations"; 186 iterationsComparator.Comparison = new Comparison(ComparisonType.Less); 187 iterationsComparator.RightSideParameter.ActualName = "MaxIterations"; 188 iterationsComparator.ResultParameter.ActualName = "ContinueIteration"; 189 iterationsComparator.Successor = conditionalBranch; 190 190 191 191 conditionalBranch.Name = "ContinueIteration?";
Note: See TracChangeset
for help on using the changeset viewer.