Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5034 for branches


Ignore:
Timestamp:
12/06/10 14:59:14 (14 years ago)
Author:
epitzer
Message:

Add missing StorableClass attributes (#852)

Location:
branches/PSO/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/PSO/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/BestPointInitializer.cs

    r5033 r5034  
    2121
    2222using System.Linq;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    2728using HeuristicLab.Parameters;
    2829using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    29 using HeuristicLab.Common;
    3030
    3131namespace HeuristicLab.Algorithms.ParticleSwarmOptimization {
     32
     33  [StorableClass]
    3234  public class BestPointInitializer : SingleSuccessorOperator {
    3335
  • branches/PSO/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleUpdater.cs

    r5033 r5034  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Data;
     
    2627using HeuristicLab.Parameters;
    2728using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using HeuristicLab.Common;
    2929
    3030namespace HeuristicLab.Algorithms.ParticleSwarmOptimization {
     31
     32  [StorableClass]
    3133  public class ParticleUpdater : SingleSuccessorOperator {
    3234
     
    6971    }
    7072    public RealVector Point {
    71       get { return PointParameter.ActualValue;  }
    72       set { PointParameter.ActualValue = value;  }
     73      get { return PointParameter.ActualValue; }
     74      set { PointParameter.ActualValue = value; }
    7375    }
    7476    public RealVector Velocity {
     
    8385    }
    8486    public DoubleMatrix Bounds {
    85       get { return BoundsParameter.ActualValue;  }
     87      get { return BoundsParameter.ActualValue; }
    8688    }
    8789    public DoubleMatrix VelocityBounds {
     
    9294    }
    9395    public double Phi_P {
    94       get { return Phi_PParameter.ActualValue.Value;  }
     96      get { return Phi_PParameter.ActualValue.Value; }
    9597    }
    9698    public double Phi_G {
  • branches/PSO/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/SwarmUpdater.cs

    r5033 r5034  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Data;
     
    2627using HeuristicLab.Parameters;
    2728using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using HeuristicLab.Common;
    2929
    3030namespace HeuristicLab.Algorithms.ParticleSwarmOptimization {
     31
     32  [StorableClass]
    3133  public class SwarmUpdater : SingleSuccessorOperator {
    3234
     
    6062    }
    6163    public double PersonalBestQuality {
    62       get { return PersonalBestQualityParameter.ActualValue.Value;  }
    63       set { PersonalBestQualityParameter.ActualValue = new DoubleValue(value);  }
     64      get { return PersonalBestQualityParameter.ActualValue.Value; }
     65      set { PersonalBestQualityParameter.ActualValue = new DoubleValue(value); }
    6466    }
    6567    public double BestQuality {
Note: See TracChangeset for help on using the changeset viewer.