RandomProposalMixin

class negmas.sao.RandomProposalMixin[source]

Bases: object

A mixin that adds the ability to propose random offers

Remarks:

Methods Summary

init_random_proposal()

Initializes the mixin

propose(state)

Proposes a random offer

Methods Documentation

init_random_proposal()[source]

Initializes the mixin

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 a random offer

Parameters

state – The mechanism state

Returns

A proposed outcome or None to refuse to offer.

Remarks:
  • Does not use the state.