LimitedOutcomesProposerMixin

class negmas.sao.LimitedOutcomesProposerMixin[source]

Bases: object

A mixin that adds the ability to propose an outcome from a set of outcomes randomly.

Methods Summary

init_limited_outcomes_proposer([…])

Initializes the mixin

propose(state)

Proposes one of the proposable_outcomes

Methods Documentation

init_limited_outcomes_proposer(proposable_outcomes: Optional[List[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]]] = None)None[source]

Initializes the mixin

Parameters

proposable_outcomes – the set of prooposable outcomes. If None then it is assumed to be all the outcomes of the negotiation

propose(state: negmas.common.MechanismState)Optional[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]][source]

Proposes one of the proposable_outcomes