Changeset 16462 for branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization
- Timestamp:
- 12/28/18 16:10:48 (6 years ago)
- Location:
- branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/AdaptiveRandomTopologyUpdater.cs
r16453 r16462 20 20 #endregion 21 21 22 using System.Collections.Generic;23 using System.Linq;24 22 using HeuristicLab.Common; 25 23 using HeuristicLab.Core; … … 28 26 using HeuristicLab.Optimization; 29 27 using HeuristicLab.Parameters; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 31 29 32 30 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 33 31 [Item("SPSO Adaptive Random Topology Updater", "Each unsuccessful iteration the topology initializer is applied again.")] 34 [Storable Class]32 [StorableType("F0FC17DF-44B3-4005-9CC3-EDBA7945544A")] 35 33 public sealed class SPSOAdaptiveRandomTopologyUpdater : SingleSuccessorOperator, ITopologyUpdater, ISingleObjectiveOperator { 36 34 … … 59 57 #region Construction & Cloning 60 58 [StorableConstructor] 61 private SPSOAdaptiveRandomTopologyUpdater( bool deserializing) : base(deserializing) { }59 private SPSOAdaptiveRandomTopologyUpdater(StorableConstructorFlag _) : base(_) { } 62 60 private SPSOAdaptiveRandomTopologyUpdater(SPSOAdaptiveRandomTopologyUpdater original, Cloner cloner) : base(original, cloner) { } 63 61 public SPSOAdaptiveRandomTopologyUpdater() -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/HeuristicLab.Algorithms.ParticleSwarmOptimization-3.3.csproj
r16454 r16462 101 101 <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath> 102 102 </Reference> 103 <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">103 <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 104 104 <HintPath>..\..\packages\HEAL.Fossil.1.0.0\lib\netstandard2.0\HEAL.Fossil.dll</HintPath> 105 105 </Reference> -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/MultiPSOTopologyUpdater.cs
r16453 r16462 28 28 using HeuristicLab.Optimization; 29 29 using HeuristicLab.Parameters; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;30 using HEAL.Fossil; 31 31 32 32 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 33 33 [Item("Multi PSO Topology Updater", "Splits swarm into NrOfSwarms non-overlapping sub-swarms. Swarms are re-grouped every regroupingPeriod iteration. The operator is implemented as described in Liang, J.J. and Suganthan, P.N 2005. Dynamic multi-swarm particle swarm optimizer. IEEE Swarm Intelligence Symposium, pp. 124-129.")] 34 [Storable Class]34 [StorableType("F5436478-B901-4357-AEE8-B63E5EB13AAF")] 35 35 public sealed class MultiPSOTopologyUpdater : SingleSuccessorOperator, ITopologyUpdater, IStochasticOperator { 36 36 … … 84 84 #region Construction & Cloning 85 85 [StorableConstructor] 86 private MultiPSOTopologyUpdater( bool deserializing) : base(deserializing) { }86 private MultiPSOTopologyUpdater(StorableConstructorFlag _) : base(_) { } 87 87 private MultiPSOTopologyUpdater(MultiPSOTopologyUpdater original, Cloner cloner) : base(original, cloner) { } 88 88 public MultiPSOTopologyUpdater() -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimization.cs
r16453 r16462 21 21 22 22 using System; 23 using System.Collections.Generic;24 23 using System.Linq; 25 24 using HeuristicLab.Analysis; … … 31 30 using HeuristicLab.Optimization.Operators; 32 31 using HeuristicLab.Parameters; 33 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;32 using HEAL.Fossil; 34 33 using HeuristicLab.PluginInfrastructure; 35 34 using HeuristicLab.Random; … … 38 37 [Item("Particle Swarm Optimization (PSO)", "A particle swarm optimization algorithm based on Standard PSO (SPSO) as described in Clerc, M. (2012). Standard particle swarm optimisation.")] 39 38 [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms, Priority = 300)] 40 [Storable Class]39 [StorableType("068A0951-B08D-41D3-A142-BA345D0AD47E")] 41 40 public sealed class ParticleSwarmOptimization : HeuristicOptimizationEngineAlgorithm, IStorableContent { 42 41 #region Parameter Properties … … 165 164 166 165 [StorableConstructor] 167 private ParticleSwarmOptimization( bool deserializing) : base(deserializing) { }166 private ParticleSwarmOptimization(StorableConstructorFlag _) : base(_) { } 168 167 private ParticleSwarmOptimization(ParticleSwarmOptimization original, Cloner cloner) 169 168 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimizationMainLoop.cs
r16453 r16462 27 27 using HeuristicLab.Optimization.Operators; 28 28 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Fossil; 30 30 31 31 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 32 32 [Item("ParticleSwarmOptimizationMainLoop", "An operator which represents the main loop of a particle swarm optimization algorithm.")] 33 [Storable Class]33 [StorableType("C9824DCA-F791-4540-8EC8-F27C8FBC6BF5")] 34 34 public class ParticleSwarmOptimizationMainLoop : AlgorithmOperator { 35 35 … … 85 85 86 86 [StorableConstructor] 87 protected ParticleSwarmOptimizationMainLoop( bool deserializing) : base(deserializing) { }87 protected ParticleSwarmOptimizationMainLoop(StorableConstructorFlag _) : base(_) { } 88 88 protected ParticleSwarmOptimizationMainLoop(ParticleSwarmOptimizationMainLoop original, Cloner cloner) 89 89 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/RandomTopologyInitializer.cs
r16453 r16462 27 27 using HeuristicLab.Optimization; 28 28 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Fossil; 30 30 31 31 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 32 32 [Item("Random Distinct Topology Initializer", "Each particle is informed by exactly k+1 distinct other particles (including itself).")] 33 [Storable Class]33 [StorableType("50A4DB55-5C5C-4C0E-A438-6C7DE14EA8A6")] 34 34 public sealed class RandomTopologyInitializer : TopologyInitializer, IStochasticOperator { 35 35 #region Parameters … … 44 44 #region Construction & Cloning 45 45 [StorableConstructor] 46 private RandomTopologyInitializer( bool deserializing) : base(deserializing) { }46 private RandomTopologyInitializer(StorableConstructorFlag _) : base(_) { } 47 47 private RandomTopologyInitializer(RandomTopologyInitializer original, Cloner cloner) : base(original, cloner) { } 48 48 public RandomTopologyInitializer() { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/RingTopologyInitializer.cs
r16453 r16462 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Fossil; 25 25 using HeuristicLab.Data; 26 26 27 27 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 28 28 [Item("Ring Topology Initializer", "Each particle is informed by its preceeding and its succeeding particle wrapping around at the beginning and the end of the swarm (in addition each particle also informs itself).")] 29 [Storable Class]29 [StorableType("B09A84CE-E1CC-4F38-BC84-1E541A792EBB")] 30 30 public sealed class RingTopologyInitializer : TopologyInitializer { 31 31 #region Construction & Cloning 32 32 33 33 [StorableConstructor] 34 private RingTopologyInitializer( bool deserializing) : base(deserializing) { }34 private RingTopologyInitializer(StorableConstructorFlag _) : base(_) { } 35 35 private RingTopologyInitializer(RingTopologyInitializer original, Cloner cloner) : base(original, cloner) { } 36 36 public RingTopologyInitializer() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/SPSORandomTopologyInitializer.cs
r16453 r16462 27 27 using HeuristicLab.Optimization; 28 28 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Fossil; 30 30 31 31 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 32 32 [Item("SPSO Random Topology Initializer", "Each particle informs k+1 other particles (including itself). The same particle (including itself) can be informed multiple times.")] 33 [Storable Class]33 [StorableType("3A589247-0629-44E4-8A49-610DE0FEC642")] 34 34 public sealed class SPSORandomTopologyInitializer : TopologyInitializer, IStochasticOperator { 35 35 #region Parameters … … 44 44 #region Construction & Cloning 45 45 [StorableConstructor] 46 private SPSORandomTopologyInitializer( bool deserializing) : base(deserializing) { }46 private SPSORandomTopologyInitializer(StorableConstructorFlag _) : base(_) { } 47 47 private SPSORandomTopologyInitializer(SPSORandomTopologyInitializer original, Cloner cloner) : base(original, cloner) { } 48 48 public SPSORandomTopologyInitializer() { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/TopologyInitializer.cs
r16453 r16462 26 26 using HeuristicLab.Optimization; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 30 30 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 31 31 [Item("TopologyInitializer", "Groups the particles into neighborhoods according to a certain strategy.")] 32 [Storable Class]32 [StorableType("B1D32055-D844-4163-9D89-1423CCE2B4C3")] 33 33 public abstract class TopologyInitializer : SingleSuccessorOperator, ITopologyInitializer { 34 34 public override bool CanChangeName { … … 47 47 #region Construction & Cloning 48 48 [StorableConstructor] 49 protected TopologyInitializer( bool deserializing) : base(deserializing) { }49 protected TopologyInitializer(StorableConstructorFlag _) : base(_) { } 50 50 protected TopologyInitializer(TopologyInitializer original, Cloner cloner) : base(original, cloner) { } 51 51 -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/VonNeumannTopologyInitializer.cs
r16453 r16462 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Fossil; 25 25 using HeuristicLab.Data; 26 26 27 27 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 28 28 [Item("Von Neumann Topology Initializer", "Every particle is informed by the two following and the two previous particles wrapping around at the beginning and the end of the swarm (in addition each particle also informs itself).")] 29 [Storable Class]29 [StorableType("F1516EBD-DA8D-462E-94DD-44391191ED8A")] 30 30 public sealed class VonNeumannTopologyInitializer : TopologyInitializer { 31 31 … … 33 33 34 34 [StorableConstructor] 35 private VonNeumannTopologyInitializer( bool deserializing) : base(deserializing) { }35 private VonNeumannTopologyInitializer(StorableConstructorFlag _) : base(_) { } 36 36 private VonNeumannTopologyInitializer(VonNeumannTopologyInitializer original, Cloner cloner) : base(original, cloner) { } 37 37 public VonNeumannTopologyInitializer() : base() { }
Note: See TracChangeset
for help on using the changeset viewer.