Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/04/13 17:24:46 (11 years ago)
Author:
ascheibe
Message:

#1886

  • removed old caching code
  • adapted convex hull view and some other minor improvements
Location:
branches/HeuristicLab.Analysis.AlgorithmBehavior/AlgorithmBehaviorUnitTests
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/AlgorithmBehaviorUnitTests/AlgorithmBehaviorUnitTests.csproj

    r9945 r10026  
    7777  <ItemGroup>
    7878    <Compile Include="UnitTest2.cs" />
    79     <Compile Include="UnitTest1.cs" />
    8079    <Compile Include="Properties\AssemblyInfo.cs" />
    8180    <Compile Include="ConvexHullTest.cs" />
     
    8988      <Project>{2533d1f9-f7f6-46cb-90d2-76d254e38dee}</Project>
    9089      <Name>HeuristicLab.Analysis.AlgorithmBehavior.Analyzers-3.3</Name>
     90    </ProjectReference>
     91    <ProjectReference Include="..\HeuristicLab.Analysis.SolutionCaching\3.3\HeuristicLab.Analysis.SolutionCaching-3.3.csproj">
     92      <Project>{a05aa272-14ec-4422-ac70-c9ca42164441}</Project>
     93      <Name>HeuristicLab.Analysis.SolutionCaching-3.3</Name>
    9194    </ProjectReference>
    9295    <ProjectReference Include="..\MIConvexHull\MIConvexHull.csproj">
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/AlgorithmBehaviorUnitTests/UnitTest2.cs

    r9757 r10026  
    11using System.Linq;
    2 using HeuristicLab.Analysis.AlgorithmBehavior.Analyzers;
     2using HeuristicLab.Analysis.SolutionCaching;
     3using HeuristicLab.Analysis.SolutionCaching.PermutationEncoding;
    34using HeuristicLab.Encodings.PermutationEncoding;
    45using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    1011    public void TestPermutationSolutionDictionary() {
    1112      var rand = new HeuristicLab.Random.FastRandom();
    12       PermutationWrapperEqualityComparer comp = new PermutationWrapperEqualityComparer();
    13       PermutationSolutionDictionary dict = new PermutationSolutionDictionary();
     13      PermutationEqualityComparer comp = new PermutationEqualityComparer();
     14      PermutationSolutionCache dict = new PermutationSolutionCache();
    1415      int realDuplicates = 0;
    1516      int noDuplicates = 0;
    1617
    17       PermutationWrapper[] permutations = new PermutationWrapper[500];
     18      Permutation[] permutations = new Permutation[500];
    1819      for (int i = 0; i < permutations.Length; i += 2) {
    1920        var p = new Permutation(PermutationTypes.RelativeUndirected, 21, rand);
    20         var pw = new PermutationWrapper(p);
    21         permutations[i] = pw;
    22         permutations[i + 1] = pw;
     21        permutations[i] = p;
     22        permutations[i + 1] = p;
    2323
    24         PermutationInformation pi = new PermutationInformation();
     24        PermutationSolutionInformation pi = new PermutationSolutionInformation();
    2525        pi.Generation = rand.Next(0, 100);
    2626        pi.ProducedBy = ProducedBy.Mutation;
    2727
    28         dict.Add(pw, pi);
     28        dict.Add(p, pi);
    2929      }
    3030
Note: See TracChangeset for help on using the changeset viewer.