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