Added warning in case number of objective is changed (and not set)

This commit is contained in:
evomarc 2002-02-02 07:37:54 +00:00
commit e4523b3080

View file

@ -57,6 +57,14 @@ public :
/** setting the static stuff */
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;
bObj=_b;
if (nObj != bObj.size())