'Changes the dimensionality of the benchmark problem
The dimensionality will only be changed if the problem is suitable
Parameters
ndim : int
The new dimensionality for the problem.'

def change_dimensions(self, ndim):

    if self.change_dimensionality:
        self._dimensions = ndim
    else:
        raise ValueError('dimensionality    cannot    be    changed    for    thisproblem')
