Fix some warnings in eo and moeo.
This commit is contained in:
parent
1f09aa656f
commit
e71dea0c5a
3 changed files with 3 additions and 2 deletions
|
|
@ -273,7 +273,7 @@ private :
|
||||||
{
|
{
|
||||||
unsigned i;
|
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<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
|
std::vector<unsigned> n(_pop.size(), 0); // how many individuals dominate guy i
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual bool operator() (const eoPop < EOT > & _pop)
|
virtual bool operator() (const eoPop < EOT > & _pop)
|
||||||
{
|
{
|
||||||
|
(void)_pop;
|
||||||
time_t elapsed = (time_t) difftime(time(NULL), start);
|
time_t elapsed = (time_t) difftime(time(NULL), start);
|
||||||
if (elapsed >= max)
|
if (elapsed >= max)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ class moeoBinaryMetricSavingUpdater : public eoUpdater
|
||||||
* @param _filename the target filename
|
* @param _filename the target filename
|
||||||
*/
|
*/
|
||||||
moeoBinaryMetricSavingUpdater (moeoVectorVsVectorBinaryMetric < ObjectiveVector, double > & _metric, const eoPop < MOEOT > & _pop, std::string _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)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue