diff --git a/branches/newMo/src/continuator/moTrueContinuator.h b/branches/newMo/src/continuator/moTrueContinuator.h index 2e1792c33..97354daa7 100644 --- a/branches/newMo/src/continuator/moTrueContinuator.h +++ b/branches/newMo/src/continuator/moTrueContinuator.h @@ -31,12 +31,3 @@ public: }; #endif - - -// Local Variables: -// coding: iso-8859-1 -// mode: C++ -// c-file-offsets: ((c . 0)) -// c-file-style: "Stroustrup" -// fill-column: 80 -// End: diff --git a/branches/newMo/src/eval/moFullEvalByCopy.h b/branches/newMo/src/eval/moFullEvalByCopy.h index f1a1aaa03..be8af9b63 100644 --- a/branches/newMo/src/eval/moFullEvalByCopy.h +++ b/branches/newMo/src/eval/moFullEvalByCopy.h @@ -4,7 +4,6 @@ #include #include - /** * Evaluation by copy */ diff --git a/branches/newMo/src/explorer/moNeighborhoodExplorer.h b/branches/newMo/src/explorer/moNeighborhoodExplorer.h index ef26b676e..836ea9653 100644 --- a/branches/newMo/src/explorer/moNeighborhoodExplorer.h +++ b/branches/newMo/src/explorer/moNeighborhoodExplorer.h @@ -6,6 +6,7 @@ #include #include +#include /** * Explore the neighborhood diff --git a/branches/newMo/src/neighborhood/moBackableNeighbor.h b/branches/newMo/src/neighborhood/moBackableNeighbor.h index 4175fdac4..9f33af530 100644 --- a/branches/newMo/src/neighborhood/moBackableNeighbor.h +++ b/branches/newMo/src/neighborhood/moBackableNeighbor.h @@ -1,6 +1,8 @@ #ifndef _BackableNeighbor_h #define _BackableNeighbor_h +#include + /** * Neighbor with a move back function to use in a moFullEvalByModif */ diff --git a/branches/newMo/src/neighborhood/moBitNeighbor.h b/branches/newMo/src/neighborhood/moBitNeighbor.h index bd0ee8f3a..c8f8f20a9 100644 --- a/branches/newMo/src/neighborhood/moBitNeighbor.h +++ b/branches/newMo/src/neighborhood/moBitNeighbor.h @@ -4,7 +4,6 @@ #include #include - /* contener of the neighbor information */ diff --git a/branches/newMo/src/neighborhood/moNeighbor.h b/branches/newMo/src/neighborhood/moNeighbor.h index ff430d107..611c5830d 100644 --- a/branches/newMo/src/neighborhood/moNeighbor.h +++ b/branches/newMo/src/neighborhood/moNeighbor.h @@ -42,8 +42,6 @@ #include #include -#include - /** * Container of the neighbor informations */ diff --git a/branches/newMo/src/neighborhood/moNeighborhood.h b/branches/newMo/src/neighborhood/moNeighborhood.h index 1dd6fafc9..ef40114c3 100644 --- a/branches/newMo/src/neighborhood/moNeighborhood.h +++ b/branches/newMo/src/neighborhood/moNeighborhood.h @@ -3,7 +3,6 @@ #include - /** * A Neighborhood */ diff --git a/branches/newMo/tutorial/oneMax/application/testSimpleHC.cpp b/branches/newMo/tutorial/oneMax/application/testSimpleHC.cpp index 8fa90ba76..51f3735df 100644 --- a/branches/newMo/tutorial/oneMax/application/testSimpleHC.cpp +++ b/branches/newMo/tutorial/oneMax/application/testSimpleHC.cpp @@ -24,37 +24,23 @@ using namespace std; //----------------------------------------------------------------------------- // fitness function #include - #include - -#include - -#include - -// local search algorithm -#include - -// the simple HC explorer -#include - -// explore the neighborhood of a bit string in order #include +#include #include #include - - -#include - #include +#include +#include +#include // REPRESENTATION //----------------------------------------------------------------------------- // define your individuals typedef eoBit Indi; -//typedef OneMaxBitNeighbor Neighbor ; // incremental evaluation -//typedef moFullEvalBitNeighbor Neighbor ; // full evaluation -//typedef moBitNeighborhood Neighborhood ; +typedef moBitNeighbor Neighbor ; // incremental evaluation +typedef moBitNeighborhood Neighborhood ; // GENERAL //----------------------------------------------------------------------------- @@ -125,7 +111,7 @@ void main_function(int argc, char **argv) FuncOneMax eval(vecSize); - moFullEvalByCopy > fulleval(eval); + moFullEvalByCopy fulleval(eval); /* ========================================================= * @@ -152,9 +138,9 @@ void main_function(int argc, char **argv) * * ========================================================= */ - moNeighborComparator > comparator; + moNeighborComparator comparator; - moBitNeighborhood > neighborhood ; + Neighborhood neighborhood ; /* ========================================================= * @@ -162,7 +148,7 @@ void main_function(int argc, char **argv) * * ========================================================= */ - moSimpleHCexplorer > > explorer(neighborhood, fulleval, comparator); + moSimpleHCexplorer explorer(neighborhood, fulleval, comparator); /* ========================================================= * @@ -170,9 +156,9 @@ void main_function(int argc, char **argv) * * ========================================================= */ - moTrueContinuator > > continuator; + moTrueContinuator continuator; - moLocalSearch< moSimpleHCexplorer > >, moTrueContinuator > > > localSearch(explorer, continuator); + moLocalSearch< moSimpleHCexplorer, moTrueContinuator > localSearch(explorer, continuator); /* ========================================================= *