Added warning in case number of objective is changed (and not set)
This commit is contained in:
parent
2873f0b3ea
commit
e4523b3080
1 changed files with 8 additions and 0 deletions
|
|
@ -57,6 +57,14 @@ public :
|
||||||
/** setting the static stuff */
|
/** setting the static stuff */
|
||||||
static void setUp(unsigned _n, vector<bool> & _b)
|
static void setUp(unsigned _n, vector<bool> & _b)
|
||||||
{
|
{
|
||||||
|
// possible problems
|
||||||
|
if ( nObj && (nObj != _n) ) // was already set to a different value
|
||||||
|
{
|
||||||
|
cout << "WARNING\n";
|
||||||
|
cout << "WARNING : you are changing the number of objectives\n";
|
||||||
|
cout << "WARNING : Make sure all existing objects are destroyed\n";
|
||||||
|
cout << "WARNING\n";
|
||||||
|
}
|
||||||
nObj=_n;
|
nObj=_n;
|
||||||
bObj=_b;
|
bObj=_b;
|
||||||
if (nObj != bObj.size())
|
if (nObj != bObj.size())
|
||||||
|
|
|
||||||
Reference in a new issue