add 'maximizing' function in all lesson's Objective Traits

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@556 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
liefooga 2007-07-06 07:27:07 +00:00
commit 3f759bd206
3 changed files with 16 additions and 0 deletions

View file

@ -25,6 +25,10 @@ public:
{
return true;
}
static bool maximizing (int i)
{
return false;
}
static unsigned int nObjectives ()
{
return 2;

View file

@ -19,6 +19,11 @@ bool FlowShopObjectiveVectorTraits::minimizing (int _i)
return true;
}
bool FlowShopObjectiveVectorTraits::maximizing (int _i)
{
// minimizing both
return false;
}
unsigned int FlowShopObjectiveVectorTraits::nObjectives ()
{

View file

@ -29,6 +29,13 @@ public:
static bool minimizing (int _i);
/**
* Returns true if the _ith objective have to be maximzed
* @param _i index of the objective
*/
static bool maximizing (int _i);
/**
* Returns the number of objectives
*/