there was an issue on doBounderNo class tied to the default values of the ctor of mother class doBounder: fixed
This commit is contained in:
parent
b1798ad351
commit
ebb20c44c5
5 changed files with 22 additions and 3 deletions
|
|
@ -9,5 +9,6 @@ INCLUDE_DIRECTORIES(
|
||||||
ADD_SUBDIRECTORY(common)
|
ADD_SUBDIRECTORY(common)
|
||||||
ADD_SUBDIRECTORY(eda_sa)
|
ADD_SUBDIRECTORY(eda_sa)
|
||||||
ADD_SUBDIRECTORY(eda)
|
ADD_SUBDIRECTORY(eda)
|
||||||
|
ADD_SUBDIRECTORY(sa)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ template < typename EOT >
|
||||||
class doBounder : public eoUF< EOT&, void >
|
class doBounder : public eoUF< EOT&, void >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
doBounder( EOT min = -5, EOT max = 5 )
|
doBounder( EOT min = EOT(1, 0), EOT max = EOT(1, 0) )
|
||||||
: _min(min), _max(max)
|
: _min(min), _max(max)
|
||||||
{
|
{
|
||||||
assert(_min.size() > 0);
|
assert(_min.size() > 0);
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,7 @@ template < typename EOT >
|
||||||
class doBounderNo : public doBounder< EOT >
|
class doBounderNo : public doBounder< EOT >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void operator()( EOT& x )
|
void operator()( EOT& ) {}
|
||||||
{}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !_doBounderNo_h
|
#endif // !_doBounderNo_h
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/application/common)
|
||||||
SET(SOURCES
|
SET(SOURCES
|
||||||
t-doEstimatorNormalMulti
|
t-doEstimatorNormalMulti
|
||||||
t-mean-distance
|
t-mean-distance
|
||||||
|
t-bounderno
|
||||||
)
|
)
|
||||||
|
|
||||||
FOREACH(current ${SOURCES})
|
FOREACH(current ${SOURCES})
|
||||||
|
|
|
||||||
18
test/t-bounderno.cpp
Normal file
18
test/t-bounderno.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#include <eo>
|
||||||
|
#include <do>
|
||||||
|
#include <mo>
|
||||||
|
|
||||||
|
#include <utils/eoLogger.h>
|
||||||
|
#include <utils/eoParserLogger.h>
|
||||||
|
|
||||||
|
#include "Rosenbrock.h"
|
||||||
|
#include "Sphere.h"
|
||||||
|
|
||||||
|
typedef eoReal< eoMinimizingFitness > EOT;
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
doBounderNo< EOT > bounder;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in a new issue