original_docstring: 
          Implementation of NSGA II crowded comparision operator.
          This is to compare if a solution is better than another in terms of its position in front and crowding distance.
          Used in NSGA II when sorting the solutions of the last front.
          This function is also implemented as a "__lt__"  for Solution Class, so that it is easier to sort and compare.
          Note that this method is not called anywhere. "__lt__" method for Solution class is being used instead.
          
          Parameters:
          
              solution1 (Solution) - the solution comparing to.
              solution2 (Solution) - the solution comparing with.
  
          Returns:
          
              A Boolean - True if solution1 is better than solution2. Otherwise, False.
          
docstring: Implementation of NSGA II crowded comparision operator.
  This is to compare if a solution is better than another in terms of its position in front and crowding distance.
  Used in NSGA II when sorting the solutions of the last front.
  This function is also implemented as a "__lt__"  for Solution Class, so that it is easier to sort and compare.
  Note that this method is not called anywhere. "__lt__" method for Solution class is being used instead.
  
  
  
  solution1 (Solution) - the solution comparing to.
  solution2 (Solution) - the solution comparing with.
  
  
  
  A Boolean - True if solution1 is better than solution2. Otherwise, False.
docstring_tokens: Implementation of NSGA II crowded comparision operator . This is to compare if a solution is better than another in terms of its position in front and crowding distance . Used in NSGA II when sorting the solutions of the last front . This function is also implemented as a " __lt__ " for Solution Class so that it is easier to sort and compare . Note that this method is not called anywhere . " __lt__ " method for Solution class is being used instead . solution1 ( Solution ) - the solution comparing to . solution2 ( Solution ) - the solution comparing with . A Boolean - True if solution1 is better than solution2 . Otherwise False .
code: def crowded_comparision_operator(self,solution1,solution2):
          """
          Implementation of NSGA II crowded comparision operator.
          This is to compare if a solution is better than another in terms of its position in front and crowding distance.
          Used in NSGA II when sorting the solutions of the last front.
          This function is also implemented as a "__lt__"  for Solution Class, so that it is easier to sort and compare.
          Note that this method is not called anywhere. "__lt__" method for Solution class is being used instead.
          
          Parameters:
          
              solution1 (Solution) - the solution comparing to.
              solution2 (Solution) - the solution comparing with.
  
          Returns:
          
              A Boolean - True if solution1 is better than solution2. Otherwise, False.
          """
          
          cond1 = solution1.rank < solution2.rank
          cond2 = (solution1.rank == solution2.rank) and (solution1.crowdingDistance > solution2.crowdingDistance)
  
          if cond1 or cond2:
              return True
          else:
              return False
code_tokens: def crowded_comparision_operator ( self , solution1 , solution2 ) : cond1 = solution1 . rank < solution2 . rank cond2 = ( solution1 . rank == solution2 . rank ) and ( solution1 . crowdingDistance > solution2 . crowdingDistance ) if cond1 or cond2 : return True else : return False
short_docstring: Implementation of NSGA II crowded comparision operator.
short_docstring_tokens: Implementation of NSGA II crowded comparision operator .
comment: """
          Implementation of NSGA II crowded comparision operator.
          This is to compare if a solution is better than another in terms of its position in front and crowding distance.
          Used in NSGA II when sorting the solutions of the last front.
          This function is also implemented as a "__lt__"  for Solution Class, so that it is easier to sort and compare.
          Note that this method is not called anywhere. "__lt__" method for Solution class is being used instead.
          
          Parameters:
          
              solution1 (Solution) - the solution comparing to.
              solution2 (Solution) - the solution comparing with.
  
          Returns:
          
              A Boolean - True if solution1 is better than solution2. Otherwise, False.
          """