Skip to content

Commit

Permalink
Fixed SimulatedBinaryCrossover and name of MichalewiczNonUniformAllPo…
Browse files Browse the repository at this point in the history
…sitionsManipulator #890

git-svn-id: https://src.heuristiclab.com/svn/core/trunk@3172 2abd9481-f8db-48e9-bd25-06bc13291c1b
  • Loading branch information
abeham committed Mar 22, 2010
1 parent 235b323 commit 739a86b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static RealVector Apply(IRandom random, RealVector parent1, RealVector pa
if (u < 0.5) { // if u is smaller than 0.5 perform a contracting crossover
beta = Math.Pow(2 * u, 1.0 / (contiguity.Value + 1));
} else if (u > 0.5) { // otherwise perform an expanding crossover
beta = Math.Pow(1.0 / (2 - 2 * u), (contiguity.Value + 1));
beta = Math.Pow(0.5 / (1.0 - u), 1.0 / (contiguity.Value + 1));
} else if (u == 0.5)
beta = 1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace HeuristicLab.Encodings.RealVectorEncoding {
/// <remarks>
/// It is implemented as described in Michalewicz, Z. 1999. Genetic Algorithms + Data Structures = Evolution Programs. Third, Revised and Extended Edition, Spring-Verlag Berlin Heidelberg.
/// </remarks>
[Item("MichalewiczNonUniformOnePositionManipulator", "It is implemented as described in Michalewicz, Z. 1999. Genetic Algorithms + Data Structures = Evolution Programs. Third, Revised and Extended Edition, Spring-Verlag Berlin Heidelberg.")]
[Item("MichalewiczNonUniformAllPositionsManipulator", "It is implemented as described in Michalewicz, Z. 1999. Genetic Algorithms + Data Structures = Evolution Programs. Third, Revised and Extended Edition, Spring-Verlag Berlin Heidelberg.")]
[StorableClass]
public class MichalewiczNonUniformAllPositionsManipulator : RealVectorManipulator {
/// <summary>
Expand Down

0 comments on commit 739a86b

Please sign in to comment.