- Timestamp:
- 08/12/19 09:42:35 (5 years ago)
- Location:
- branches/Templates/EmptyAlgorithm/EmptyAlgorithm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Templates/EmptyAlgorithm/EmptyAlgorithm/EmptyAlgorithm.csproj
r15745 r17199 10 10 <RootNamespace>EmptyAlgorithm</RootNamespace> 11 11 <AssemblyName>EmptyAlgorithm</AssemblyName> 12 <TargetFrameworkVersion>v4. 5.2</TargetFrameworkVersion>12 <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> 13 13 <FileAlignment>512</FileAlignment> 14 <TargetFrameworkProfile /> 14 15 </PropertyGroup> 15 16 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> … … 31 32 </PropertyGroup> 32 33 <ItemGroup> 34 <Reference Include="HEAL.Attic, Version=1.2.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 35 <SpecificVersion>False</SpecificVersion> 36 <HintPath>..\..\..\..\trunk\bin\HEAL.Attic.dll</HintPath> 37 </Reference> 33 38 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 34 39 <SpecificVersion>False</SpecificVersion> -
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.