From d6b97f7754600f7747891f9af7a0800632d1cf05 Mon Sep 17 00:00:00 2001 From: verel Date: Mon, 21 Mar 2011 16:57:35 +0000 Subject: [PATCH] Add in MOEO.h the method objectiveVector(dim, value) to change one value of the objective vector git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2200 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-moeo/src/core/MOEO.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/trunk/paradiseo-moeo/src/core/MOEO.h b/trunk/paradiseo-moeo/src/core/MOEO.h index 44b83c07c..077e7a09f 100644 --- a/trunk/paradiseo-moeo/src/core/MOEO.h +++ b/trunk/paradiseo-moeo/src/core/MOEO.h @@ -139,6 +139,18 @@ class MOEO : public EO < MOEOObjectiveVector > } + /** + * Sets one dimension of the objective vector + * @param _dim dimension of the objective vector to set + * @param _value the new value of the corresponding objective + */ + void objectiveVector(unsigned int _dim, typename ObjectiveVector::Type _value) + { + objectiveVectorValue[_dim] = _value; + invalidObjectiveVectorValue = false; + } + + /** * Sets the objective vector of the current solution * @param _objectiveVectorValue the new objective vector