#include <moeoObjectiveVectorTraits.h>
Static Public Member Functions | |
| static void | setup (unsigned _nObjectives, std::vector< bool > &_bObjectives) |
| Parameters setting. | |
| static unsigned | nObjectives () |
| Returns the number of objectives. | |
| static bool | minimizing (unsigned _i) |
| Returns true if the _ith objective have to be minimized. | |
| static bool | maximizing (unsigned _i) |
| Returns true if the _ith objective have to be maximized. | |
| static double | tolerance () |
| Returns the tolerance value (to compare solutions). | |
Static Private Attributes | |
| static unsigned | nObj |
| The number of objectives. | |
| static std::vector< bool > | bObj |
| The min/max vector. | |
Definition at line 23 of file moeoObjectiveVectorTraits.h.
| static void moeoObjectiveVectorTraits::setup | ( | unsigned | _nObjectives, | |
| std::vector< bool > & | _bObjectives | |||
| ) | [inline, static] |
Parameters setting.
| _nObjectives | the number of objectives | |
| _bObjectives | the min/max vector (true = min / false = max) |
Definition at line 32 of file moeoObjectiveVectorTraits.h.
| static bool moeoObjectiveVectorTraits::minimizing | ( | unsigned | _i | ) | [inline, static] |
Returns true if the _ith objective have to be minimized.
| _i | the index |
Definition at line 65 of file moeoObjectiveVectorTraits.h.
References bObj.
Referenced by maximizing().
| static bool moeoObjectiveVectorTraits::maximizing | ( | unsigned | _i | ) | [inline, static] |
Returns true if the _ith objective have to be maximized.
| _i | the index |
Definition at line 77 of file moeoObjectiveVectorTraits.h.
References minimizing().
1.5.1