some small changes on tutorial after fusion

This commit is contained in:
verel 2012-12-20 16:36:19 +01:00
commit 0f9434387e
7 changed files with 8 additions and 7 deletions

View file

@ -125,7 +125,7 @@ void main_function(int argc, char **argv)
// Combine them with relative rates
eoPropCombinedQuadOp<Indi> xover(xover1, onePointRate);
xover.add(xoverU, URate);
xover.add(xover2, twoPointsRate, true);
xover.add(xover2, twoPointsRate);
// MUTATION
// standard bit-flip mutation for bitstring

View file

@ -122,7 +122,7 @@ void main_function(int argc, char **argv)
eoHypercubeCrossover<Indi> xoverA;
// Combine them with relative weights
eoPropCombinedQuadOp<Indi> xover(xoverS, segmentRate);
xover.add(xoverA, hypercubeRate, true);
xover.add(xoverA, hypercubeRate);
// MUTATION
// offspring(i) uniformly chosen in [parent(i)-epsilon, parent(i)+epsilon]

View file

@ -131,7 +131,7 @@ void main_function(int argc, char **argv)
// Combine them with relative rates
eoPropCombinedQuadOp<Indi> xover(xover1, onePointRate);
xover.add(xoverU, URate);
xover.add(xover2, twoPointsRate, true);
xover.add(xover2, twoPointsRate);
// MUTATION
// standard bit-flip mutation for bitstring

View file

@ -214,7 +214,7 @@ void main_function(int argc, char **argv)
// Combine them with relative rates
eoPropCombinedQuadOp<Indi> xover(xover1, onePointRate);
xover.add(xoverU, URate);
xover.add(xover2, twoPointsRate, true);
xover.add(xover2, twoPointsRate);
// MUTATION
// standard bit-flip mutation for bitstring

View file

@ -191,7 +191,7 @@ void main_function(int argc, char **argv)
eoHypercubeCrossover<Indi> xoverA;
// Combine them with relative weights
eoPropCombinedQuadOp<Indi> xover(xoverS, segmentRate);
xover.add(xoverA, hypercubeRate, true);
xover.add(xoverA, hypercubeRate);
// MUTATION
// offspring(i) uniformly chosen in [parent(i)-epsilon, parent(i)+epsilon]

View file

@ -219,7 +219,7 @@ void main_function(int argc, char **argv)
// Combine them with relative rates
eoPropCombinedQuadOp<Indi> xover(xover1, onePointRate);
xover.add(xoverU, URate);
xover.add(xover2, twoPointsRate, true);
xover.add(xover2, twoPointsRate);
// MUTATION
// standard bit-flip mutation for bitstring