- Timestamp:
- 10/04/13 17:24:46 (11 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior/AlgorithmBehaviorUnitTests
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/AlgorithmBehaviorUnitTests/AlgorithmBehaviorUnitTests.csproj
r9945 r10026 77 77 <ItemGroup> 78 78 <Compile Include="UnitTest2.cs" /> 79 <Compile Include="UnitTest1.cs" />80 79 <Compile Include="Properties\AssemblyInfo.cs" /> 81 80 <Compile Include="ConvexHullTest.cs" /> … … 89 88 <Project>{2533d1f9-f7f6-46cb-90d2-76d254e38dee}</Project> 90 89 <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> 91 94 </ProjectReference> 92 95 <ProjectReference Include="..\MIConvexHull\MIConvexHull.csproj"> -
branches/HeuristicLab.Analysis.AlgorithmBehavior/AlgorithmBehaviorUnitTests/UnitTest2.cs
r9757 r10026 1 1 using System.Linq; 2 using HeuristicLab.Analysis.AlgorithmBehavior.Analyzers; 2 using HeuristicLab.Analysis.SolutionCaching; 3 using HeuristicLab.Analysis.SolutionCaching.PermutationEncoding; 3 4 using HeuristicLab.Encodings.PermutationEncoding; 4 5 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 10 11 public void TestPermutationSolutionDictionary() { 11 12 var rand = new HeuristicLab.Random.FastRandom(); 12 Permutation WrapperEqualityComparer comp = new PermutationWrapperEqualityComparer();13 PermutationSolution Dictionary dict = new PermutationSolutionDictionary();13 PermutationEqualityComparer comp = new PermutationEqualityComparer(); 14 PermutationSolutionCache dict = new PermutationSolutionCache(); 14 15 int realDuplicates = 0; 15 16 int noDuplicates = 0; 16 17 17 Permutation Wrapper[] permutations = new PermutationWrapper[500];18 Permutation[] permutations = new Permutation[500]; 18 19 for (int i = 0; i < permutations.Length; i += 2) { 19 20 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; 23 23 24 Permutation Information pi = new PermutationInformation();24 PermutationSolutionInformation pi = new PermutationSolutionInformation(); 25 25 pi.Generation = rand.Next(0, 100); 26 26 pi.ProducedBy = ProducedBy.Mutation; 27 27 28 dict.Add(p w, pi);28 dict.Add(p, pi); 29 29 } 30 30
Note: See TracChangeset
for help on using the changeset viewer.