I have separated the include files into
eo everything that is general to any representation es.h everything about real representation (in es dir) ga.h everything related to bitstring representation (in ga dir) To be continued by gp.h, and ... This has lead to some slight modifications in test file eobin and all tutorial examples files...
This commit is contained in:
parent
8aad8f547c
commit
41ff11bd7f
13 changed files with 51 additions and 56 deletions
|
|
@ -204,11 +204,15 @@ public:
|
|||
// virtual desctructor (to avoid warining?)
|
||||
virtual ~eoRealVectorBounds(){}
|
||||
|
||||
// Default Ctor
|
||||
eoRealVectorBounds() :
|
||||
vector<eoRealBounds *>(0) {}
|
||||
|
||||
/**
|
||||
Simple bounds = minimum and maximum (allowed)
|
||||
*/
|
||||
// Ctor: same bonds for everybody, explicit
|
||||
eoRealVectorBounds(unsigned _dim, double _min=0, double _max=1) :
|
||||
eoRealVectorBounds(unsigned _dim, double _min, double _max) :
|
||||
vector<eoRealBounds *>(_dim, new eoRealInterval(_min, _max))
|
||||
{
|
||||
if (_max-_min<=0)
|
||||
|
|
@ -328,7 +332,7 @@ public:
|
|||
Simple bounds = minimum and maximum (allowed)
|
||||
*/
|
||||
// Ctor: nothing to do!
|
||||
eoRealVectorNoBounds(unsigned _dim=0) : eoRealVectorBounds(_dim) {}
|
||||
eoRealVectorNoBounds(unsigned _dim=0) {}
|
||||
|
||||
|
||||
virtual bool isBounded(unsigned) {return false;}
|
||||
|
|
|
|||
Reference in a new issue