run_negotiation
- negmas.tournaments.run_negotiation(s: ~negmas.inout.Scenario, partners: tuple[type[~negmas.negotiators.negotiator.Negotiator]], partner_names: tuple[str] | None = None, partner_params: tuple[dict[str, ~typing.Any]] | None = None, rep: int = 0, path: ~pathlib.Path | None = None, mechanism_type: type[~negmas.mechanisms.Mechanism] = <class 'negmas.sao.mechanism.SAOMechanism'>, mechanism_params: dict[str, ~typing.Any] | None = None, full_names: bool = True, verbosity: int = 0, plot=False, plot_params: dict[str, ~typing.Any] | None = None, run_id: int | str | None = None, stats: ~negmas.preferences.ops.ScenarioStats | None = None, annotation: dict[str, ~typing.Any] | None = None, private_infos: tuple[dict[str, ~typing.Any] | None] | None = None, id_reveals_type: bool = False, name_reveals_type: bool = True, mask_scenario_name: bool = True, ignore_exceptions: bool = False) dict[str, Any][source]
Run a single negotiation with fully specified parameters
- Parameters:
s – The
Scenariorepresenting the negotiation (outcome space and preferences).partners – The partners running the negotiation in order of addition to the mechanism.
real_scenario_name – The real name of the scenario (used when saving logs).
partner_names – Names of partners. Either
Nonefor defaults or a tuple of the same length aspartnerspartner_params – Parameters used to create the partners. Either
Nonefor defaults or a tuple of the same length aspartnersrep – The repetition number for this run of the negotiation
path – A folder to save the logs into. If not given, no logs will be saved.
mechanism_type – the type of the
Mechanismto use for this negotiationmechanism_params – The parameters used to create the
MechanismorNonefor defaultsfull_names – Use full names for partner names (only used if
partner_namesis None)verbosity – Verbosity level as an integer
plot – If true, save a plot of the negotiation (only if
pathis given)plot_params – Parameters to pass to the plotting function
run_id – A unique ID for this run. If not given one is generated based on date and time
stats – statistics of the scenario. If not given or
pathisNone, statistics are not savedannotation – Common information saved in the mechanism’s annotation (accessible by negotiators using
self.nmi.annotation).Nonefor nothingprivate_infos – Private information saved in the negotiator’s
private_infoattribute (accessible by negotiators asself.private_info).Nonefor nothingid_reveals_type – Each negotiator ID will reveal its type.
name_reveals_type – Each negotiator name will reveal its type.
- Returns:
A dictionary of negotiation results that contains the final state of the negotiation alongside other information