diff --git a/eo/app/gprop/gprop.h b/eo/app/gprop/gprop.h index ef1ab73a..6f630207 100644 --- a/eo/app/gprop/gprop.h +++ b/eo/app/gprop/gprop.h @@ -121,7 +121,7 @@ public: // eoChromXover //----------------------------------------------------------------------------- -class eoChromXover: public eoQuadraticOp +class eoChromXover: public eoQuadOp { public: void operator()(Chrom& chrom1, Chrom& chrom2) diff --git a/eo/app/mastermind/mastermind.h b/eo/app/mastermind/mastermind.h index 14107884..c23d921d 100644 --- a/eo/app/mastermind/mastermind.h +++ b/eo/app/mastermind/mastermind.h @@ -179,7 +179,7 @@ class eoChromMutation: public eoMonOp // eoChromXover //----------------------------------------------------------------------------- -class eoChromXover: public eoQuadraticOp +class eoChromXover: public eoQuadOp { public: void operator()(Chrom& chrom1, Chrom& chrom2) diff --git a/eo/test/t-eoCheckpointing.cpp b/eo/test/t-eoCheckpointing.cpp index 282bbb0b..6d12fcf2 100644 --- a/eo/test/t-eoCheckpointing.cpp +++ b/eo/test/t-eoCheckpointing.cpp @@ -15,7 +15,7 @@ // general #include // Random number generators -#include +#include #include #include #include @@ -41,7 +41,7 @@ public : int the_main(int argc, char **argv) { // ok, we have a command line parser and a state - typedef eoBin Chrom; + typedef eoBit Chrom; eoParser parser(argc, argv); diff --git a/eo/test/t-eobin.cpp b/eo/test/t-eobin.cpp index feee305d..9e91c88c 100644 --- a/eo/test/t-eobin.cpp +++ b/eo/test/t-eobin.cpp @@ -31,7 +31,7 @@ //----------------------------------------------------------------------------- -typedef eoBin Chrom; +typedef eoBit Chrom; //----------------------------------------------------------------------------- @@ -74,23 +74,23 @@ void main_function() random(chrom); chrom.fitness(binary_value(chrom)); cout << "after eoBinRandom ............ " << chrom << endl; - eoBinBitFlip bitflip; + eoOneBitFlip bitflip; bitflip(chrom); chrom.fitness(binary_value(chrom)); cout << "after eoBitFlip .............. " << chrom << endl; - eoBinMutation mutation(0.5); + eoBitMutation mutation(0.5); mutation(chrom); chrom.fitness(binary_value(chrom)); cout << "after eoBinMutation(0.5) ..... " << chrom << endl; - eoBinInversion inversion; + eoBitInversion inversion; inversion(chrom); chrom.fitness(binary_value(chrom)); cout << "after eoBinInversion ......... " << chrom << endl; - eoBinNext next; + eoBitNext next; next(chrom); chrom.fitness(binary_value(chrom)); cout << "after eoBinNext .............. " << chrom << endl; - eoBinPrev prev; + eoBitPrev prev; prev(chrom); chrom.fitness(binary_value(chrom)); cout << "after eoBinPrev .............. " << chrom << endl; @@ -100,7 +100,7 @@ void main_function() << endl << "eoBinOp's aplied to ... " << chrom << " " << chrom2 << endl; - eoBinCrossover xover; + eo1PtBitXover xover; fill(chrom.begin(), chrom.end(), false); fill(chrom2.begin(), chrom2.end(), true); xover(chrom, chrom2); @@ -109,7 +109,7 @@ void main_function() for (i = 1; i < SIZE; i++) { - eoBinNxOver nxover(i); + eoNPtsBitXover nxover(i); fill(chrom.begin(), chrom.end(), false); fill(chrom2.begin(), chrom2.end(), true); nxover(chrom, chrom2); @@ -121,7 +121,7 @@ void main_function() for (i = 1; i < SIZE / 2; i++) for (j = 1; j < SIZE / 2; j++) { - eoBinGxOver gxover(i, j); + eoBitGxOver gxover(i, j); fill(chrom.begin(), chrom.end(), false); fill(chrom2.begin(), chrom2.end(), true); gxover(chrom, chrom2);