- Main Page
- Classes
- Files

- Search for |

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# moeoObjectiveVectorDouble< ObjectiveVectorTraits > Class Template Reference

This class allows to represent a solution in the objective space (phenotypic representation) by a std::vector of doubles, i.e. More...

`#include <moeoObjectiveVectorDouble.h>`

Inheritance diagram for moeoObjectiveVectorDouble< ObjectiveVectorTraits >:

List of all members.

## Public Member Functions
| moeoObjectiveVectorDouble (double _value=0.0)
| Ctor.
| moeoObjectiveVectorDouble (std::vector< double > &_v)
| Ctor from a vector of doubles.
bool | dominates (const moeoObjectiveVectorDouble< ObjectiveVectorTraits > &_other) const
| Returns true if the current objective vector dominates _other according to the Pareto dominance relation (but it's better to use a moeoObjectiveVectorComparator object to compare solutions).
bool | operator== (const moeoObjectiveVectorDouble< ObjectiveVectorTraits > &_other) const
| Returns true if the current objective vector is equal to _other (according to a tolerance value).
bool | operator!= (const moeoObjectiveVectorDouble< ObjectiveVectorTraits > &_other) const
| Returns true if the current objective vector is different than _other (according to a tolerance value).
bool | operator< (const moeoObjectiveVectorDouble< ObjectiveVectorTraits > &_other) const
| Returns true if the current objective vector is smaller than _other on the first objective, then on the second, and so on (can be usefull for sorting/printing).
bool | operator> (const moeoObjectiveVectorDouble< ObjectiveVectorTraits > &_other) const
| Returns true if the current objective vector is greater than _other on the first objective, then on the second, and so on (can be usefull for sorting/printing).
bool | operator<= (const moeoObjectiveVectorDouble< ObjectiveVectorTraits > &_other) const
| Returns true if the current objective vector is smaller than or equal to _other on the first objective, then on the second, and so on (can be usefull for sorting/printing).
bool | operator>= (const moeoObjectiveVectorDouble< ObjectiveVectorTraits > &_other) const
| Returns true if the current objective vector is greater than or equal to _other on the first objective, then on the second, and so on (can be usefull for sorting/printing).

## Detailed Description

### template<class ObjectiveVectorTraits>
class moeoObjectiveVectorDouble< ObjectiveVectorTraits >

This class allows to represent a solution in the objective space (phenotypic representation) by a std::vector of doubles, i.e.

that an objective value is represented using a double, and this for any objective.

Definition at line 27 of file moeoObjectiveVectorDouble.h.

## Constructor & Destructor Documentation

template<class ObjectiveVectorTraits>

moeoObjectiveVectorDouble< ObjectiveVectorTraits >::moeoObjectiveVectorDouble | ( | std::vector< double > & | _v | ) | `[inline]`

Ctor from a vector of doubles.

Parameters:

  | _v | the std::vector < double >

Definition at line 45 of file moeoObjectiveVectorDouble.h.

## Member Function Documentation

template<class ObjectiveVectorTraits>

bool moeoObjectiveVectorDouble< ObjectiveVectorTraits >::dominates | ( | const moeoObjectiveVectorDouble< ObjectiveVectorTraits > & | _other | ) | const`[inline]`

Returns true if the current objective vector dominates _other according to the Pareto dominance relation (but it's better to use a moeoObjectiveVectorComparator object to compare solutions).

Parameters:

  | _other | the other moeoObjectiveVectorDouble object to compare with

Definition at line 54 of file moeoObjectiveVectorDouble.h.

template<class ObjectiveVectorTraits>

bool moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator== | ( | const moeoObjectiveVectorDouble< ObjectiveVectorTraits > & | _other | ) | const`[inline]`

Returns true if the current objective vector is equal to _other (according to a tolerance value).

Parameters:

  | _other | the other moeoObjectiveVectorDouble object to compare with

Definition at line 65 of file moeoObjectiveVectorDouble.h.

Referenced by moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator!=(), and moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator>=().

template<class ObjectiveVectorTraits>

bool moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator!= | ( | const moeoObjectiveVectorDouble< ObjectiveVectorTraits > & | _other | ) | const`[inline]`

Returns true if the current objective vector is different than _other (according to a tolerance value).

Parameters:

  | _other | the other moeoObjectiveVectorDouble object to compare with

Definition at line 82 of file moeoObjectiveVectorDouble.h.

References moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator==().

template<class ObjectiveVectorTraits>

bool moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator< | ( | const moeoObjectiveVectorDouble< ObjectiveVectorTraits > & | _other | ) | const`[inline]`

Returns true if the current objective vector is smaller than _other on the first objective, then on the second, and so on (can be usefull for sorting/printing).

Parameters:

  | _other | the other moeoObjectiveVectorDouble object to compare with

Definition at line 93 of file moeoObjectiveVectorDouble.h.

Referenced by moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator<=().

template<class ObjectiveVectorTraits>

bool moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator> | ( | const moeoObjectiveVectorDouble< ObjectiveVectorTraits > & | _other | ) | const`[inline]`

Returns true if the current objective vector is greater than _other on the first objective, then on the second, and so on (can be usefull for sorting/printing).

Parameters:

  | _other | the other moeoObjectiveVectorDouble object to compare with

Definition at line 105 of file moeoObjectiveVectorDouble.h.

Referenced by moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator>=().

template<class ObjectiveVectorTraits>

bool moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator<= | ( | const moeoObjectiveVectorDouble< ObjectiveVectorTraits > & | _other | ) | const`[inline]`

Returns true if the current objective vector is smaller than or equal to _other on the first objective, then on the second, and so on (can be usefull for sorting/printing).

Parameters:

  | _other | the other moeoObjectiveVectorDouble object to compare with

Definition at line 116 of file moeoObjectiveVectorDouble.h.

References moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator<().

template<class ObjectiveVectorTraits>

bool moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator>= | ( | const moeoObjectiveVectorDouble< ObjectiveVectorTraits > & | _other | ) | const`[inline]`

Returns true if the current objective vector is greater than or equal to _other on the first objective, then on the second, and so on (can be usefull for sorting/printing).

Parameters:

  | _other | the other moeoObjectiveVectorDouble object to compare with

Definition at line 127 of file moeoObjectiveVectorDouble.h.

References moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator==(), and moeoObjectiveVectorDouble< ObjectiveVectorTraits >::operator>().

The documentation for this class was generated from the following file:

- moeoObjectiveVectorDouble.h