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:
parent
48c8517ce8
commit
3f759bd206
3 changed files with 16 additions and 0 deletions
|
|
@ -25,6 +25,10 @@ public:
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
static bool maximizing (int i)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
static unsigned int nObjectives ()
|
static unsigned int nObjectives ()
|
||||||
{
|
{
|
||||||
return 2;
|
return 2;
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,11 @@ bool FlowShopObjectiveVectorTraits::minimizing (int _i)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool FlowShopObjectiveVectorTraits::maximizing (int _i)
|
||||||
|
{
|
||||||
|
// minimizing both
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned int FlowShopObjectiveVectorTraits::nObjectives ()
|
unsigned int FlowShopObjectiveVectorTraits::nObjectives ()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,13 @@ public:
|
||||||
static bool minimizing (int _i);
|
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
|
* Returns the number of objectives
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue