(self, indices: Tuple, distance_matrix: np.ndarray)
return list_new_indices
Adds extra indices for the combinatorial problem.

        Parameters
        ----------
        indices : tuple
        distance_matrix : numpy.ndarray (M,M)

        Example
        -------
        >>> add_indices((1,2), numpy.array((5,5)))
        [(1, 2, 3), (1, 2, 4), (1, 2, 5)]
Adds extra indices for the combinatorial problem.
Adds extra indices for the combinatorial problem .
def add_indices(self, indices: Tuple, distance_matrix: np.ndarray) -> List:
        '''Adds extra indices for the combinatorial problem.

        Parameters
        ----------
        indices : tuple
        distance_matrix : numpy.ndarray (M,M)

        Example
        -------
        >>> add_indices((1,2), numpy.array((5,5)))
        [(1, 2, 3), (1, 2, 4), (1, 2, 5)]

        '''
        list_new_indices = []
        for i in range(len(distance_matrix)):
            if i not in indices:
                list_new_indices.append(indices + (i,))
        return list_new_indices
def add_indices ( self , indices : Tuple , distance_matrix : np . ndarray ) -> List : list_new_indices = [ ] for i in range ( len ( distance_matrix ) ) : if i not in indices : list_new_indices . append ( indices + ( i , ) ) return list_new_indices