fix: remove a lot of trivial warnings
This commit is contained in:
parent
a16298c58b
commit
84148824e0
83 changed files with 218 additions and 196 deletions
|
|
@ -46,11 +46,11 @@
|
|||
class ObjectiveVectorTraits : public moeoObjectiveVectorTraits
|
||||
{
|
||||
public:
|
||||
static bool minimizing (int i)
|
||||
static bool minimizing (int /*i*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
static bool maximizing (int i)
|
||||
static bool maximizing (int /*i*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -88,7 +88,7 @@ int main()
|
|||
|
||||
|
||||
|
||||
for(int i=0; i< pop.size()/2; i++){
|
||||
for(unsigned i=0; i< pop.size()/2; i++){
|
||||
// tmp=rng.uniform()*100;
|
||||
obj[0]=o1;
|
||||
obj[1]=o2;
|
||||
|
|
@ -132,10 +132,10 @@ int main()
|
|||
std::cout << "nadir: " << nadir << std::endl;
|
||||
std::cout << "ideal: " << ideal << std::endl;
|
||||
|
||||
for(int i=0; i<pop.size() ; i++)
|
||||
for(unsigned i=0; i<pop.size() ; i++)
|
||||
std::cout << pop[i].objectiveVector() << std::endl;
|
||||
|
||||
for(int i=0; i<pop.size() ; i++){
|
||||
for(unsigned i=0; i<pop.size() ; i++){
|
||||
arch(pop[i]);
|
||||
// nadir = arch.getNadir();
|
||||
// ideal = arch.getIdeal();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue