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
This commit is contained in:
verel 2011-03-21 16:57:35 +00:00
commit d6b97f7754

View file

@ -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