def __init__(self,
                 termination,
                 period=30,
                 ) -> None:
        """

        Parameters
        ----------

        termination : Termination
            The termination criterion that shall become robust

        period : int
            The number of last generations to be considered for termination.

        """
        super().__init__()

        # create a collection in case number of max generation or evaluations is used
        self.termination = termination

        # the history calculated also in a sliding window
        self.history = SlidingWindow(period)


        Parameters
        ----------

        termination : Termination
            The termination criterion that shall become robust

        period : int
            The number of last generations to be considered for termination.

        
pymoo/termination/robust.py