- Timestamp:
- 08/12/19 09:42:35 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Templates/EmptyAlgorithm/EmptyAlgorithm/MyAlgorithm.cs
r14816 r17199 7 7 using HeuristicLab.Optimization; // BasicAlgorithm 8 8 using HeuristicLab.Parameters; 9 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;10 9 using HeuristicLab.Problems.Binary; 11 10 using HeuristicLab.Random; // MersenneTwister 11 using HEAL.Attic; 12 12 13 13 namespace EmptyAlgorithm { … … 19 19 [Creatable(Category = CreatableAttribute.Categories.Algorithms, Priority = 999)] 20 20 21 [Storable Class] // for persistence (storing your algorithm to a files or transfer to HeuristicLab.Hive21 [StorableType("689280F7-E371-44A2-98A5-FCEDF22CA343")] // for persistence (storing your algorithm to a files or transfer to HeuristicLab.Hive 22 22 public class MyAlgorithm : BasicAlgorithm { 23 23 // This algorithm only works for BinaryProblems. … … 49 49 // even though the data is later overwritten by the stored data. 50 50 [StorableConstructor] 51 public MyAlgorithm( bool deserializing) : base(deserializing) { }51 public MyAlgorithm(StorableConstructorFlag _) : base(_) { } 52 52 53 53 // Each clonable item must have a cloning ctor (deep cloning, the cloner is used to handle cyclic object references)
Note: See TracChangeset
for help on using the changeset viewer.