paradiseo/mo/test/t-moStdFitnessNeighborStat.cpp
2013-06-13 11:26:15 +02:00

24 lines
780 B
C++

//-----------------------------------------------------------------------------
// t-moFitnessNeighborStat.cpp
//-----------------------------------------------------------------------------
#include <eo>
//#include "eoReal.h"
#include "continuator/moStdFitnessNeighborStat.h"
#include "neighborhood/moRealNeighbor.h"
#include "neighborhood/moRealNeighborhood.h"
//-----------------------------------------------------------------------------
typedef eoReal< eoMinimizingFitness > EOT;
typedef moRealNeighbor< EOT > Neighbor;
int main(int ac, char** av)
{
moNeighborhoodStat<Neighbor> nhStat
moStdFitnessNeighborStat<Neighbor> stat(nhStat);
EOT solution(2, 5);
stat(solution);
//assert(stat.value() == 1);
std::cout << "ok " << stat.value() << endl;
}