diff --git a/trunk/paradiseo-moeo/src/core/MOEO.h b/trunk/paradiseo-moeo/src/core/MOEO.h index 077e7a09f..785cd6bf5 100644 --- a/trunk/paradiseo-moeo/src/core/MOEO.h +++ b/trunk/paradiseo-moeo/src/core/MOEO.h @@ -151,6 +151,16 @@ class MOEO : public EO < MOEOObjectiveVector > } + /** + * Gets one dimension of the objective vector + * @param _dim dimension of the objective vector to set + */ + typename ObjectiveVector::Type objectiveVector(unsigned int _dim) + { + return objectiveVectorValue[_dim]; + } + + /** * Sets the objective vector of the current solution * @param _objectiveVectorValue the new objective vector