new abstract function
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@576 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
20fdb9df76
commit
87cb8e0a6f
1 changed files with 17 additions and 1 deletions
|
|
@ -19,6 +19,22 @@
|
||||||
* moeoIndicatorBasedFitnessAssignment for binary indicators.
|
* moeoIndicatorBasedFitnessAssignment for binary indicators.
|
||||||
*/
|
*/
|
||||||
template < class MOEOT >
|
template < class MOEOT >
|
||||||
class moeoBinaryIndicatorBasedFitnessAssignment : public moeoIndicatorBasedFitnessAssignment < MOEOT > {};
|
class moeoBinaryIndicatorBasedFitnessAssignment : public moeoIndicatorBasedFitnessAssignment < MOEOT >
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
/** The type for objective vector */
|
||||||
|
typedef typename MOEOT::ObjectiveVector ObjectiveVector;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Updates the fitness values of the whole population _pop by taking the new objective vector _objVec into account
|
||||||
|
* and returns the fitness value of _objVec.
|
||||||
|
* @param _pop the population
|
||||||
|
* @param _objVec the objective vector
|
||||||
|
*/
|
||||||
|
virtual double updateByAdding(eoPop < MOEOT > & _pop, ObjectiveVector & _objVec) = 0;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
#endif /*MOEOINDICATORBASEDFITNESSASSIGNMENT_H_*/
|
#endif /*MOEOINDICATORBASEDFITNESSASSIGNMENT_H_*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue