code: def length(self):
          
          length = 0
          for r in self._routes:
              length = length + r.length()
  
          return length
docs: Returns the solution length (or cost)
          
          Returns
          -------
          float
              Solution length (or cost).