Changeset 5645 for trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimizationMainLoop.cs
- Timestamp:
- 03/09/11 13:46:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimizationMainLoop.cs
r5643 r5645 48 48 } 49 49 public IValueLookupParameter<DoubleValue> InertiaParameter { 50 get { return (IValueLookupParameter<DoubleValue>)Parameters[" Inertia"]; }50 get { return (IValueLookupParameter<DoubleValue>)Parameters["CurrentInertia"]; } 51 51 } 52 52 public IValueLookupParameter<DoubleValue> PersonalBestAttractionParameter { … … 105 105 Parameters.Add(new ValueLookupParameter<IOperator>("Analyzer", "The operator used to analyze each generation.")); 106 106 107 Parameters.Add(new ValueLookupParameter<DoubleValue>(" Inertia", "Inertia weight on a particle's movement (omega)."));107 Parameters.Add(new ValueLookupParameter<DoubleValue>("CurrentInertia", "Inertia weight on a particle's movement (omega).")); 108 108 Parameters.Add(new ValueLookupParameter<DoubleValue>("PersonalBestAttraction", "Weight for particle's pull towards its personal best soution (phi_p).")); 109 109 Parameters.Add(new ValueLookupParameter<DoubleValue>("NeighborBestAttraction", "Weight for pull towards the neighborhood best solution or global best solution in case of a totally connected topology (phi_g).")); … … 141 141 #region Create operator graph 142 142 OperatorGraph.InitialOperator = resultsCollector; 143 resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("Iterations" , null, "CurrentIteration"));144 resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Current Inertia", null, "CurrentInertia"));143 resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("Iterations")); 144 resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("CurrentInertia")); 145 145 resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("Evaluated Solutions", null, "EvaluatedSolutions")); 146 146 resultsCollector.ResultsParameter.ActualName = "Results"; … … 170 170 subScopesCounter.Name = "Increment EvaluatedSolutions"; 171 171 subScopesCounter.ValueParameter.ActualName = EvaluatedSolutionsParameter.Name; 172 subScopesCounter.Successor = topologyUpdaterPlaceholder; 172 subScopesCounter.Successor = topologyUpdaterPlaceholder; 173 173 174 174 topologyUpdaterPlaceholder.Name = "(TopologyUpdater)";
Note: See TracChangeset
for help on using the changeset viewer.