Changeset 5941


Ignore:
Timestamp:
04/04/11 10:38:04 (8 years ago)
Author:
mkofler
Message:

#852: Set the default inertia value to 1 for consistency reasons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimization.cs

    r5935 r5941  
    154154      Parameters.Add(new ValueParameter<IntValue>("MaxIterations", "Maximal number of iterations.", new IntValue(1000)));
    155155      Parameters.Add(new ValueParameter<MultiAnalyzer>("Analyzer", "The operator used to analyze each generation.", new MultiAnalyzer()));
    156       Parameters.Add(new ValueParameter<DoubleValue>("Inertia", "Inertia weight on a particle's movement (omega).", new DoubleValue(-0.2)));
     156      Parameters.Add(new ValueParameter<DoubleValue>("Inertia", "Inertia weight on a particle's movement (omega).", new DoubleValue(1)));
    157157      Parameters.Add(new ValueParameter<DoubleValue>("PersonalBestAttraction", "Weight for particle's pull towards its personal best soution (phi_p).", new DoubleValue(-0.01)));
    158158      Parameters.Add(new ValueParameter<DoubleValue>("NeighborBestAttraction", "Weight for pull towards the neighborhood best solution or global best solution in case of a totally connected topology (phi_g).", new DoubleValue(3.7)));
     
    306306        updater.ValueParameter.ActualName = "CurrentInertia";
    307307        updater.StartValueParameter.Value = new DoubleValue(1);
    308         updater.EndValueParameter.Value = new DoubleValue(double.Epsilon);
     308        updater.EndValueParameter.Value = new DoubleValue(1E-10);
    309309      }
    310310    }
Note: See TracChangeset for help on using the changeset viewer.