LimitedOutcomesAcceptorMixin

class negmas.sao.LimitedOutcomesAcceptorMixin[source]

Bases: object

A mixin that adds the ability to accept random offers

Methods Summary

init_limited_outcomes_acceptor([…])

Initializes the mixin

join(*args, **kwargs)

respond(state, offer)

Respond to an offer.

Methods Documentation

init_limited_outcomes_acceptor(acceptable_outcomes: Optional[Iterable[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]]] = None, acceptance_probabilities: Optional[List[float]] = None, time_factor: Optional[Union[float, List[float]]] = None, p_ending: float = 0.05, p_no_response: float = 0.0)None[source]

Initializes the mixin

Parameters
  • acceptable_outcomes – the set of acceptable outcomes. If None then it is assumed to be all the outcomes of the negotiation.

  • acceptance_probabilities – probability of accepting each acceptable outcome. If None then it is assumed to be unity.

  • time_factor – If given, the acceptance probability will go up with time by this factor

  • p_no_response – probability of refusing to respond to offers

  • p_ending – probability of ending negotiation

Returns

None

join(*args, **kwargs)[source]
respond(state: negmas.common.MechanismState, offer: Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]])negmas.outcomes.ResponseType[source]

Respond to an offer.

Parameters

offer (Outcome) – offer being tested

Returns

The response to the offer

Return type

ResponseType