Issue on n_parents using MOEAD #511
              
                Unanswered
              
          
                  
                    
                      MassimoValle
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 2 replies
-
| 
 | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am need of a help.
Running MOEA/D with MixedVariableSampling() and with MixedVariableMating() I get the following error:
AttributeError: 'dict' object has no attribute 'n_parents'It refers to this line in the moead.py class [line 103]:
P = self.selection.do(self.problem, pop, 1, self.mating.crossover.n_parents, neighbors=[self.neighbors[k]])The error occurs at the end of the first iteration, when the algorithm is preparing to perform the mating.
I can't figure out where I am wrong in the implementation and what parameter I am not setting or I am setting but incorrectly.
This is my implementation of the code:
I am pretty sure the problem is defined correctly since with NSGA2, NSGA3 and GA it works correctly.
Anyone can help me?
Beta Was this translation helpful? Give feedback.
All reactions