Fix some warnings in eo and moeo.

This commit is contained in:
quemy 2014-05-03 18:58:55 +02:00
commit e71dea0c5a
3 changed files with 3 additions and 2 deletions

View file

@ -273,7 +273,7 @@ private :
{
unsigned i;
typedef typename EOT::Fitness::fitness_traits traits;
//typedef typename EOT::Fitness::fitness_traits traits;
std::vector<std::vector<unsigned> > S(_pop.size()); // which individuals does guy i dominate
std::vector<unsigned> n(_pop.size(), 0); // how many individuals dominate guy i

View file

@ -56,6 +56,7 @@ public:
*/
virtual bool operator() (const eoPop < EOT > & _pop)
{
(void)_pop;
time_t elapsed = (time_t) difftime(time(NULL), start);
if (elapsed >= max)
{

View file

@ -65,7 +65,7 @@ class moeoBinaryMetricSavingUpdater : public eoUpdater
* @param _filename the target filename
*/
moeoBinaryMetricSavingUpdater (moeoVectorVsVectorBinaryMetric < ObjectiveVector, double > & _metric, const eoPop < MOEOT > & _pop, std::string _filename) :
metric(_metric), pop(_pop), filename(_filename), counter(1), firstGen(true)
metric(_metric), pop(_pop), filename(_filename), firstGen(true), counter(1)
{}