- Timestamp:
- 07/17/11 22:51:11 (13 years ago)
- Location:
- branches/QAPAlgorithms
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAPAlgorithms
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/QAPAlgorithms/HeuristicLab.Encodings.RealVectorEncoding/3.3/HeuristicLabEncodingsRealVectorEncodingPlugin.cs.frame
r6099 r6569 26 26 /// Plugin class for HeuristicLab.Encodings.RealVectorEncoding plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Encodings.RealVectorEncoding", "3.3. 4.$WCREV$")]28 [Plugin("HeuristicLab.Encodings.RealVectorEncoding", "3.3.5.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Encodings.RealVectorEncoding-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Collections", "3.3")] -
branches/QAPAlgorithms/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialAllPositionManipulator.cs
r5445 r6569 87 87 if (u < 0.5) { 88 88 delta = Math.Pow(2 * u, 1.0 / (contiguity.Value + 1)) - 1.0; 89 } else if (u > 0.5) {90 delta = 1.0 - Math.Pow(2.0 - 2.0 * u, 1.0 / contiguity.Value + 1);91 } else if (u == 0.5) delta = 0;89 } else if (u >= 0.5) { 90 delta = 1.0 - Math.Pow(2.0 - 2.0 * u, 1.0 / (contiguity.Value + 1)); 91 } 92 92 93 93 vector[index] += delta * maxManipulation.Value; -
branches/QAPAlgorithms/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialOnePositionManipulator.cs
r5445 r6569 89 89 if (u < 0.5) { 90 90 delta = Math.Pow(2 * u, 1.0 / (contiguity + 1)) - 1.0; 91 } else if (u > 0.5) {92 delta = 1.0 - Math.Pow(2.0 - 2.0 * u, 1.0 / contiguity + 1);93 } else delta = 0;91 } else if (u >= 0.5) { 92 delta = 1.0 - Math.Pow(2.0 - 2.0 * u, 1.0 / (contiguity + 1)); 93 } 94 94 95 95 return delta; -
branches/QAPAlgorithms/HeuristicLab.Encodings.RealVectorEncoding/3.3/Properties/AssemblyInfo.frame
r6099 r6569 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.3.0.0")] 57 [assembly: AssemblyFileVersion("3.3. 4.$WCREV$")]57 [assembly: AssemblyFileVersion("3.3.5.$WCREV$")] -
branches/QAPAlgorithms/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/PolynomialAllPositionManipulatorTest.cs
r5445 r6569 92 92 random.DoubleNumbers = new double[] { 0.2, 0.7, 0.8, 0.01, 0.1 }; 93 93 parent = new RealVector(new double[] { 0.2, 0.2, 0.3, 0.5, 0.1 }); 94 expected = new RealVector(new double[] { 0.120213215256006, 0. 336631954950876, 0.474551336679454, 0.322759240811056, -0.0182075293954083 });94 expected = new RealVector(new double[] { 0.120213215256006, 0.249415354697564, 0.379786784743994, 0.322759240811056, -0.0182075293954083 }); 95 95 contiguity = new DoubleValue(0.8); 96 96 maxManipulation = new DoubleValue(0.2); … … 106 106 try { 107 107 PolynomialAllPositionManipulator.Apply(random, parent, contiguity, maxManipulation); 108 } 109 catch (System.ArgumentException) { 108 } catch (System.ArgumentException) { 110 109 exceptionFired = true; 111 110 } -
branches/QAPAlgorithms/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/Properties/AssemblyInfo.cs
r5446 r6569 53 53 // by using the '*' as shown below: 54 54 [assembly: AssemblyVersion("3.3.0.0")] 55 [assembly: AssemblyFileVersion("3.3. 3.0")]55 [assembly: AssemblyFileVersion("3.3.5.0")]
Note: See TracChangeset
for help on using the changeset viewer.