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

        return length