def METHOD_NAME(self, parameters: Parameters, current_iteration: int = 0):
    """Append :class:`Parameters` to the history.
    Parameters
    ----------
    parameters : Parameters
        The group to append.
    current_iteration: int
        Current iteration of the optimizer.
    Raises
    ------
    ValueError
        Raised if the parameter labels differs from previous.
    """
    (
        parameter_labels,
        parameter_values,
        _,
        _,
    ) = parameters.get_label_value_and_bounds_arrays()
    parameter_labels = ["iteration", *parameter_labels]
    if len(self._parameter_labels) == 0:
        self._parameter_labels = parameter_labels
    if parameter_labels != self.parameter_labels:
        raise ValueError("Cannot append parameters. Parameter labels do not match existing.")
    self._parameters.METHOD_NAME(np.array([current_iteration, *parameter_values]))