SAORandomSyncController

class negmas.sao.SAORandomSyncController(*args, p_acceptance=0.15, p_rejection=0.85, p_ending=0.0, **kwargs)[source]

Bases: negmas.sao.SAOSyncController

A sync controller that returns random offers. (See SAOSyncController ).

Parameters
  • p_acceptance – The probability that an offer will be accepted

  • p_rejection – The probability that an offer will be rejected

  • p_ending – The probability of ending the negotiation at any negotiation round.

Remarks:
  • If probability of acceptance, rejection and ending sum to less than 1.0, the agent will return NO_RESPONSE with the remaining probability. Depending on the settings of the SAOMechanism this may be treated as ending the negotiation.

Methods Summary

counter_all(offers, states)

Calculate a response to all offers from all negotiators (negotiator ID is the key).

first_proposals()

Gets a set of proposals to use for initializing the negotiation.

make_response()

Methods Documentation

counter_all(offers, states)[source]

Calculate a response to all offers from all negotiators (negotiator ID is the key).

Parameters
  • offers – Maps negotiator IDs to offers

  • states – Maps negotiator IDs to offers AT the time the offers were made.

Remarks:
  • The response type CANNOT be WAIT.

  • If the system determines that a loop is formed, the agent may receive this call for a subset of negotiations not all of them.

first_proposals()[source]

Gets a set of proposals to use for initializing the negotiation.

make_response()negmas.outcomes.ResponseType[source]