Changeset 3053 for trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/TranslocationInversionManipulatorTest.cs
- Timestamp:
- 03/16/10 00:56:44 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3
- Property svn:ignore
-
old new 2 2 bin 3 3 obj 4 HeuristicLabEncodingsPermutation Plugin.cs4 HeuristicLabEncodingsPermutationEncodingPlugin.cs
-
- Property svn:ignore
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/TranslocationInversionManipulatorTest.cs
r2930 r3053 21 21 22 22 using Microsoft.VisualStudio.TestTools.UnitTesting; 23 using HeuristicLab.Encodings.Permutation ;23 using HeuristicLab.Encodings.PermutationEncoding; 24 24 25 namespace HeuristicLab.Encodings.Permutation _33.Tests {25 namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests { 26 26 /// <summary> 27 27 ///This is a test class for TranslocationInversionManipulator and is intended … … 84 84 public void TranslocationInversionManipulatorApplyTest() { 85 85 TestRandom random = new TestRandom(); 86 Permutation .Permutationparent, expected;86 Permutation parent, expected; 87 87 // The following test is based on an example from Larranaga, P. et al. 1999. Genetic Algorithms for the Travelling Salesman Problem: A Review of Representations and Operators. Artificial Intelligence Review, 13 88 88 random.Reset(); 89 89 random.IntNumbers = new int[] { 2, 4, 4 }; 90 parent = new Permutation .Permutation(new int[] { 0, 1, 2, 3, 4, 5, 6, 7 });90 parent = new Permutation(new int[] { 0, 1, 2, 3, 4, 5, 6, 7 }); 91 91 Assert.IsTrue(parent.Validate()); 92 92 93 expected = new Permutation .Permutation(new int[] { 0, 1, 5, 6, 4, 3, 2, 7 });93 expected = new Permutation(new int[] { 0, 1, 5, 6, 4, 3, 2, 7 }); 94 94 Assert.IsTrue(expected.Validate()); 95 95 TranslocationInversionManipulator.Apply(random, parent);
Note: See TracChangeset
for help on using the changeset viewer.