diff --git a/application/CMakeLists.txt b/application/CMakeLists.txt index dabb9ea0f..24b57198d 100644 --- a/application/CMakeLists.txt +++ b/application/CMakeLists.txt @@ -9,5 +9,6 @@ INCLUDE_DIRECTORIES( ADD_SUBDIRECTORY(common) ADD_SUBDIRECTORY(eda_sa) ADD_SUBDIRECTORY(eda) +ADD_SUBDIRECTORY(sa) ###################################################################################### diff --git a/src/doBounder.h b/src/doBounder.h index 3ce4a5543..44240246e 100644 --- a/src/doBounder.h +++ b/src/doBounder.h @@ -14,7 +14,7 @@ template < typename EOT > class doBounder : public eoUF< EOT&, void > { public: - doBounder( EOT min = -5, EOT max = 5 ) + doBounder( EOT min = EOT(1, 0), EOT max = EOT(1, 0) ) : _min(min), _max(max) { assert(_min.size() > 0); diff --git a/src/doBounderNo.h b/src/doBounderNo.h index 94d873a83..0ca883bc7 100644 --- a/src/doBounderNo.h +++ b/src/doBounderNo.h @@ -14,8 +14,7 @@ template < typename EOT > class doBounderNo : public doBounder< EOT > { public: - void operator()( EOT& x ) - {} + void operator()( EOT& ) {} }; #endif // !_doBounderNo_h diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index dbb444816..4e8bffc72 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -35,6 +35,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/application/common) SET(SOURCES t-doEstimatorNormalMulti t-mean-distance + t-bounderno ) FOREACH(current ${SOURCES}) diff --git a/test/t-bounderno.cpp b/test/t-bounderno.cpp new file mode 100644 index 000000000..1a1571632 --- /dev/null +++ b/test/t-bounderno.cpp @@ -0,0 +1,18 @@ +#include +#include +#include + +#include +#include + +#include "Rosenbrock.h" +#include "Sphere.h" + +typedef eoReal< eoMinimizingFitness > EOT; + +int main(void) +{ + doBounderNo< EOT > bounder; + + return 0; +}