git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1553 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
8516b58dec
commit
57007ca1e4
6 changed files with 92 additions and 206 deletions
|
|
@ -44,29 +44,9 @@
|
|||
#include <set>
|
||||
#include <iostream>
|
||||
#include <moeoNumberUnvisitedSelect.h>
|
||||
#include <moeoTestClass.h>
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class ObjectiveVectorTraits : public moeoObjectiveVectorTraits
|
||||
{
|
||||
public:
|
||||
static bool minimizing (int i)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
static bool maximizing (int i)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
static unsigned int nObjectives ()
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
};
|
||||
|
||||
typedef moeoRealObjectiveVector < ObjectiveVectorTraits > ObjectiveVector;
|
||||
|
||||
typedef MOEO < ObjectiveVector, double, double > Solution;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
int main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue