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:
parent
43e1f0614f
commit
d6b97f7754
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue