Changeset 5911


Ignore:
Timestamp:
03/31/11 16:22:55 (11 years ago)
Author:
mkofler
Message:

#852: Small code fixes as discussed with abeham. Renamed SwarmUpdater to RealVectorSwarmUpdater. Moved update code for velocity bounds wiring in RealVectorSwarmUpdater to new method.

File:
1 edited

Legend:

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

    r5905 r5911  
    3333
    3434namespace HeuristicLab.Encodings.RealVectorEncoding {
    35   [Item("Swarm Updater", "Updates personal best point and quality as well as global best point and quality.")]
     35  [Item("RealVectorSwarmUpdater", "Updates personal best point and quality as well as global best point and quality.")]
    3636  [StorableClass]
    3737  public sealed class RealVectorSwarmUpdater : SingleSuccessorOperator, IRealVectorSwarmUpdater {
     
    223223
    224224    void VelocityBoundsStartValueParameter_Value_ValueChanged(object sender, EventArgs e) {
     225      UpdateVelocityBoundsParamater();
     226    }
     227
     228    void UpdateVelocityBoundsParamater() {
    225229      if (VelocityBoundsParameter.Value == null) {
    226230        VelocityBoundsParameter.Value = new DoubleMatrix(1, 2);
     
    241245        VelocityBoundsStartValueParameter.Value.ValueChanged += new EventHandler(VelocityBoundsStartValueParameter_Value_ValueChanged);
    242246      }
     247      UpdateVelocityBoundsParamater();
    243248    }
    244249
Note: See TracChangeset for help on using the changeset viewer.