Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/09/11 12:42:41 (12 years ago)
Author:
mkofler
Message:

#852: PSO code refactoring. Cleanup and minor improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/ParticleOperators/RealVectorParticleUpdater.cs

    r5592 r5643  
    5050      get { return (ILookupParameter<RealVector>)Parameters["NeighborBest"]; }
    5151    }
    52     public LookupParameter<RealVector> BestPointParameter {
    53       get { return (LookupParameter<RealVector>)Parameters["BestPoint"]; }
     52    public LookupParameter<RealVector> BestRealVectorParameter {
     53      get { return (LookupParameter<RealVector>)Parameters["BestRealVector"]; }
    5454    }
    5555    public ILookupParameter<RealVector> RealVectorParameter {
     
    8585    }
    8686    protected RealVector BestPoint {
    87       get { return BestPointParameter.ActualValue; }
     87      get { return BestRealVectorParameter.ActualValue; }
    8888    }
    8989    protected RealVector RealVector {
     
    121121      Parameters.Add(new LookupParameter<RealVector>("Velocity", "Particle's current velocity."));
    122122      Parameters.Add(new LookupParameter<RealVector>("PersonalBest", "Particle's personal best solution."));
    123       Parameters.Add(new LookupParameter<RealVector>("BestPoint", "Global best position."));
     123      Parameters.Add(new LookupParameter<RealVector>("BestRealVector", "Global best position."));
    124124      Parameters.Add(new LookupParameter<RealVector>("NeighborBest", "Best neighboring solution."));
    125125      Parameters.Add(new LookupParameter<DoubleMatrix>("Bounds", "The lower and upper bounds for each dimension of the position vector for the current problem."));
Note: See TracChangeset for help on using the changeset viewer.