From 1a1422f2f9fb927d6808984755a09e9011abf9d6 Mon Sep 17 00:00:00 2001 From: verel Date: Tue, 22 Mar 2011 09:03:43 +0000 Subject: [PATCH] the getter of the previous commit git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2201 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-moeo/src/core/MOEO.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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