def apply_payoff(self):
if self._selected_action is None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if self._closed:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>self._algorithm.distribute_payoff(self)<EOL>self._payoff = <NUM_LIT:0><EOL>self._algorithm.update(self)<EOL>self._closed = True<EOL>
Apply the payoff that has been accumulated from immediate
        reward and/or payments from successor match sets. Attempting to
        call this method before an action has been selected or after it
        has already been called for the same match set will result in a
        ValueError.

        Usage:
            match_set.select_action()
            match_set.payoff = reward
            match_set.apply_payoff()

        Arguments: None
        Return: None