negmas


Namenegmas JSON
Version 0.10.23 PyPI version JSON
download
home_pagehttps://github.com/yasserfarouk/negmas
SummaryNEGotiations Managed by Agent Simulations
upload_time2024-04-07 03:49:12
maintainerNone
docs_urlNone
authorYasser Mohammad
requires_python>=3.10
licenseNone
keywords negotiation mas multi-agent simulation ai
VCS
bugtrack_url
requirements typer Click psutil PyYAML click-config-file colorlog inflect matplotlib numpy pandas progressbar2 py4j pytest-runner pytest-timeout pytest-check scipy stringcase tabulate typing typing_extensions dill seaborn scikit-learn networkx gif rich pygments numba pillow
Travis-CI
coveralls test coverage
            Overview
========

.. start-badges

.. image:: https://img.shields.io/pypi/pyversions/negmas.svg
    :target: https://pypi.python.org/pypi/negmas
    :alt: Python

.. image:: https://img.shields.io/pypi/status/negmas.svg
    :target: https://pypi.python.org/pypi/negmas
    :alt: Pypi

.. image:: https://img.shields.io/pypi/l/negmas.svg
    :target: https://pypi.python.org/pypi/negmas
    :alt: License

.. image:: https://img.shields.io/pypi/dm/negmas.svg
    :target: https://pypi.python.org/pypi/negmas
    :alt: Downloads

.. image:: https://img.shields.io/codacy/grade/1b204fe0a69e41a298a175ea225d7b81.svg
    :target: https://app.codacy.com/project/yasserfarouk/negmas/dashboard
    :alt: Code Quality

.. image:: https://img.shields.io/pypi/v/negmas.svg
    :target: https://pypi.python.org/pypi/negmas
    :alt: Pypi

.. image:: https://github.com/yasserfarouk/negmas/workflows/CI/badge.svg
    :target: https://www.github.com/yasserfarouk/negmas
    :alt: Build Status

.. image:: https://codecov.io/gh/yasserfarouk/negmas/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/yasserfarouk/negmas
    :alt: Coverage Status

.. image:: https://github.com/yasserfarouk/negmas/workflows/PyPI/badge.svg
    :target: https://pypi.python.org/pypi/negmas
    :alt: Published on Pypi

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/ambv/black
    :alt: Coding style black

.. image:: https://mybinder.org/badge_logo.svg
    :target: https://mybinder.org/v2/gh/yasserfarouk/negmas/master

.. image:: https://static.pepy.tech/personalized-badge/negmas?period=total&units=international_system&left_color=black&right_color=blue&left_text=Downloads
 :target: https://pepy.tech/projects/negmas

.. end-badges

.. container:: twocol

   .. container:: leftside

      .. image:: https://yasserfarouk.github.io/images/negmas-small.png
            :width: 200
            :alt: Negmas Logo

   .. container:: rightside

      NegMAS is a python library for developing autonomous negotiation agents embedded in simulation environments.
      The name ``negmas`` stands for either NEGotiation MultiAgent System or NEGotiations Managed by Agent Simulations
      (your pick). The main goal of NegMAS is to advance the state of the art in situated simultaneous negotiations.
      Nevertheless, it can; and is being used; for modeling simpler bilateral and multi-lateral negotiations, preference elicitation
      , etc.

.. note::

    * A YouTube playlist to help you use NegMAS for ANAC2020_ SCM_ league can be found here_

    .. _ANAC2020: http://web.tuat.ac.jp/~katfuji/ANAC2020
    .. _SCM: http://web.tuat.ac.jp/~katfuji/ANAC2020/#scm
    .. _here: https://www.youtube.com/playlist?list=PLqvs51K2Mb8IJe5Yz5jmYrRAwvIpGU2nF

Introduction
============

This package was designed to help advance the state-of-art in negotiation research by providing an easy-to-use yet
powerful platform for autonomous negotiation targeting situated simultaneous negotiations.
It grew out of the NEC-AIST collaborative laboratory project.

By *situated* negotiations, we mean those for which utility functions are not pre-ordained by fiat but are a natural
result of a simulated business-like process.

By *simultaneous* negotiations, we mean sessions of dependent negotiations for which the utility value of an agreement
of one session is affected by what happens in other sessions.

The documentation is available at: documentation_  (Automatically built versions are available on readthedocs_ )

.. _documentation: https://negmas.readthedocs.io/en/latest/
.. _readthedocs: https://negmas.readthedocs.io/en/latest/

Main Features
=============

This platform was designed with both flexibility and scalability in mind. The key features of the NegMAS package are:

#. The public API is decoupled from internal details allowing for scalable implementations of the same interaction
   protocols.
#. Supports agents engaging in multiple concurrent negotiations.
#. Provides support for inter-negotiation synchronization either through coupled utility functions or through central
   *controllers*.
#. Provides sample negotiators that can be used as templates for more complex negotiators.
#. Supports both mediated and unmediated negotiations.
#. Supports both bilateral and multilateral negotiations.
#. Novel negotiation protocols and simulated *worlds* can be added to the package as easily as adding novel negotiators.
#. Allows for non-traditional negotiation scenarios including dynamic entry/exit from the negotiation.
#. A large variety of built in utility functions.
#. Utility functions can be active dynamic entities which allows the system to model a much wider range of dynamic ufuns
   compared with existing packages.
#. A distributed system with the same interface and industrial-strength implementation is being created allowing agents
   developed for NegMAS to be seemingly employed in real-world business operations.

To use negmas in a project

.. code-block:: python

    import negmas

The package was designed for many uses cases. On one extreme, it can be used by an end user who is interested in running
one of the built-in negotiation protocols. On the other extreme, it can be used to develop novel kinds of negotiation
agents, negotiation protocols, multi-agent simulations (usually involving situated negotiations), etc.

Running existing negotiators/negotiation protocols
==================================================

Using the package for negotiation can be as simple as the following code snippet:

.. code-block:: python

    import random
    from negmas import SAOMechanism, AspirationNegotiator, MappingUtilityFunction

    session = SAOMechanism(outcomes=10, n_steps=100)
    negotiators = [AspirationNegotiator(name=f"a{_}") for _ in range(5)]
    for negotiator in negotiators:
        session.add(
            negotiator, preferences=MappingUtilityFunction(lambda x: random.random() * x[0])
        )
    session.run()

In this snippet, we created a mechanism session with an outcome-space of *10* discrete outcomes that would run for *10*
steps. Five agents with random utility functions are then created and *added* to the session. Finally the session is
*run* to completion. The agreement (if any) can then be accessed through the *state* member of the session. The library
provides several analytic and visualization tools to inspect negotiations. See the first tutorial on
*Running a Negotiation* for more details.

Developing a negotiator
=======================

Developing a novel negotiator slightly more difficult by is still doable in few lines of code:

.. code-block:: python

    from negmas.sao import SAONegotiator


    class MyAwsomeNegotiator(SAONegotiator):
        def propose(self, state):
            """Your code to create a proposal goes here"""

By just implementing `propose()`, this negotiator is now capable of engaging in alternating offers
negotiations. See the documentation of `Negotiator` and `SAONegotiator` for a full description of available functionality out of the box.

Developing a negotiation protocol
=================================

Developing a novel negotiation protocol is actually even simpler:

.. code-block:: python

    from negmas import Mechanism, MechanismState


    class MyNovelProtocol(Mechanism):
        def __call__(self, state: MechanismState):
            """One round of the protocol"""

By implementing the single `__call__()` function, a new protocol is created. New negotiators can be added to the
negotiation using `add()` and removed using `remove()`. See the documentation for a full description of
`Mechanism` available functionality out of the box.


Running a world simulation
==========================

The *raison d'ĂȘtre* for NegMAS is to allow you to develop negotiation agents capable of behaving in realistic
*business like* simulated environments. These simulations are called *worlds* in NegMAS. Agents interact with each other
within these simulated environments trying to maximize some intrinsic utility function of the agent through several
*possibly simultaneous* negotiations.

The `situated` module provides all that you need to create such worlds. An example can be found in the `scml` package.
This package implements a supply chain management system in which factory managers compete to maximize their profits in
a market with only negotiations as the means of securing contracts.


Acknowledgement
===============

.. _Genius: http://ii.tudelft.nl/genius

NegMAS tests use scenarios used in ANAC 2010 to ANAC 2018 competitions obtained from the Genius_ Platform. These domains
can be found in the tests/data and notebooks/data folders.

History
=======

Release 0.10.23
---------------

* Tournament combination in Cartesian tournaments

    * Cartesian tournaments were structured to allow for saving and loading
    * Added load/save/combine to SimpleTournamentResults
    * Added combine_tournament for combining on disk tournament results with control on copying and scenario renaming

* Adding max-tasks-per-child to all tournaments
* Supporting world-timeout in tournaments
* Do not end tournaments if a single future timesout

Release 0.10.22
---------------

* Saving repeated runs in cartesian tournaments.
* Adding sort_runs to cartesian tournaments. Passing sort_runs overrides randomize_runs and causes smaller scenarios to be negotiated first. Scenario's size is the product of the outcome-space cardinality, number of steps, and time-limits.
* Improving parallelism in cartesian tournaments:

  * Adding max-tasks-per-process
  * Adding external_timeout to cartesian tournaments. This parameter is only effective for parallel runs and enforces and external timeout on all tasks. This will avoid waiting for slow negotiators but it has the disadvantage of causing the main thread to never end. Tournaments may now need C-c to end.
* Adding _InfiniteWaiter negotiator for testing
* Accepting None for hidden_time_limit in Mechanism.

Release 0.10.21
---------------

* More exception resistance in cartesian_tournament
* Base Mechanism class now can ignore exceptions in initialization of agents
* More consistent naming of methods involving negotiators

Release 0.10.20
---------------

* Matching the behavior of Genius in relative_time.
  Originally, NegMAS used the following rule for relative_time R:

  i = 0 => R = 0

  i > 0 => R = min(1, max(t/T, (i+1)/(N+1)))

  where i is the current step, t is current time, T is time_limit, N is
  n_steps.

  After this change the special case at i=0 is removed:

  R = min(1, max(t/T, (i+1)/(N+1)))

  This matches Genius behavior exactly if we have either T=\infty or
  N=\infty.
* More info in printing in cartesian verbose
* Rounding output in cartesian verbose mode
* Printing execution time in cartesian verbose

Release 0.10.19
---------------

* Saving erred-negotiator and erred-agent in MechanismState in case of errors in SAO  and related mechanisms
* Saving details about errors (including traceback) in cartesian products (in all_scores.csv).

Release 0.10.18
---------------

* Improving the way some stats are saved in situated
* CLI improvements

  Now the "negotiate" CLI has a much better help. Try:

  >> negotiate --help

  Moreover, we added the ability to generate scenarios and save them as
  well as more control over statistics

Release 0.10.17
---------------

* correcting the way some stats are saved. Avoids both double saving of stats in some cases and not saving them at all in others

Release 0.10.16
---------------

* Avoid controller failure if a wrong ID is passed

Release 0.10.15
---------------

* Making controllers generics for typing stability
* Adding agent_names back to the NMI

Release 0.10.14
---------------
* Running bridge in slow actions
* Adding a tutorial about using the genius bridge
* Getting "negmas genius" to work as expected and adding more arguments to it
* Making negotiators generics
    * Adding conversion from GBState to SAOState even though it is not really needed. Not tested yet.
* Making mechanisms and worlds generics
* Link corrections in docs
* Getting genius_id to work for all negotiators now
* Migrating from black to ruff for formatting
* Skipping stat combination tests
* Adding plot_combined_stats and combine_stats in World
* Fixing logo path

Release 0.10.13
---------------
* Minor coloring in tournaments
* Adding plot_stats() and stat_names to World
* Always using sync-calls when debugging
* Testing hidden time limit
* Better ufun generation. negmas.preferences.generators now have two functions:
    generate_single_issue_ufuns and generate_multi_issue_ufuns. These can be
    used to generate ufuns using any generator in the GENERATOR_MAP with
    full control:
    - can control issue, outcome and ufun names
    - can control reserved values and/or rational fractions
    - can control the type: numeric/string issues and linear-additive/mapping ufuns
* MappingUFun returns -inf for non-existing outcomes
* Now mapping ufuns will return 0.0 for unknown values not None
* bugfix: fixing activity level and other stat calculation
* Adding generate_multi_issue_ufuns. This generator generates a set of ufuns for a multi-issue scenario with
    controllable pareto generators
* Adding plotting to Scenario
* doc: removing svg explicit setting

Release 0.10.12
---------------
* Adding GB to the mechanisms docs
* Saving scenario figs by default in Cartesian tournaments
* Showing inheritance graphs in docs

Release 0.10.11
---------------
* Adding TimeBasedOfferingStrategy
* bugfix: Incorrect scenario names sometimes. Caused by updating the same scenario object in multiple consecutive runs specially when running serial tournaments.
* feature: Negotiator logs in mechanisms

    - Negotiators can use self.nmi.log_info to log information in the
      mechanism that is accessible for any one who can access the mechanism.
      log_warning, log_error, log_debug, log_critical are also available.
    - Logs are stored as structured dicts that will be converted to data
      frames. IT IS NECESSARY for all logs with the same key to have the
      same EXACT keys and it is recommended for their values to have the
      same type.
    - Cartesian tournaments will now save these logs after the mechanism
      ends if any are given and logging is enabled (i.e. path is passed to
      cartesian_tournament()).

    Limitations:

       - You MUST pass a key (nid) to all log functions. If two different
         negotiators passed the same key, these logs will be combined in a
         single file. This may be too cooperative and confusing!!
       - The logs are not returned in SimpleTournamentResults. If you need
         to read the logs you must save logs to the HDD. This is by design
         because these logs may be too large and keeping them to return them
         after the tournament may consume too much memory. Currently, they
         will be deleted from memory with the mechanism.

Release 0.10.10
---------------

* bugfix: Distributing integers correctly when approximate equality is wanted
* bugfix: Caretsian tournaments not varying n_steps
* bugfix: sample_between failing on small ranges

Release 0.10.9
--------------

* Correcting the path to the genius bridge
* Adding plotting of offline runs
* Better styling of plots
* removing n_trials from generate_utility (not needed)
* Full testing of ufun generators
* Passing private_infos to cartesian tournaments
* bugfix: Private info not passed from SAONegotiator
* Supporting yaml for saving and loading domains

Release 0.10.8
--------------

* Adding exception handling and testing Cartesian Tournaments
* Adding ufun generators with controlled Pareto
* Stopping saving "stats.json" in tournaments. stats.csv contains the same information
* Allowing nash calculation without ufuns
* Exception handling in cartesian tournaments. Note that I assume that ignore_negotiator_exceptions can be passed to the mechanism class
* intin and floatin in the helpers to sample.
* Saving negotiator times in cartesian
* Adding execution_time to cartesian logs
* Finer conntrol on timing in Cartesian tournaments. Also recording negotiator times
* Adding negotiator_times to Mechanisms
* Finer control on mechanism printing
* Ignoring some typing errors
* Passing plot_params in cartesian_tournament

Release 0.10.7
--------------
* Saving path and controlling name-shortening in tournaments

Release 0.10.6
--------------
* Adding the ability to hide types in cartesian_tournament
* Name but not ID reveals type cartesian_tournament by default
* Removing neg/agent_names from NMI. Now negotiators have access to each other's ID but not name by default
* Correcting sorter negotiator

Release 0.10.5
--------------
* Minor bugfixes

Release 0.10.4
--------------
* Adding simple tournaments and testing them
* improving plotting and minor typing enhancement
* bugfix in time-based
* Reducing verbosity
* passing kwargs back to Negotitors
* Adding simple tournaments
* Fixing a pandas warning
* Renaming Scenario.agenda -> outcome_space

Release 0.10.3
--------------
* Switching to readthedocs.io
* doc update
* adding RandomAlwaysAcceptingNegotiator
* Upgrading CI tests to use python 3.12 by default
* avoid genius when calculating coverage
* Do not test notebooks before release (avoid genius)
* Empty results when a tournament has no scores

Release 0.10.2
--------------

* Adding RandomOfferGuaranteedAcceptance negotiator
* Fixing some failures in testing some genius agents
* [Snyk] Security upgrade pillow from 9.5.0 to 10.0.1
* [Snyk] Security upgrade werkzeug from 2.2.3 to 3.0.1
* [Snyk] Security upgrade pillow from 9.5.0 to 10.0.0
* fix: docs/requirements.txt to reduce vulnerabilities
* Updating tutorials, adding a tournament there
* Fixing an installation bug: hypothesis was needed to run test_situated under negmas/tests. This prevented users from running the fast set of tests after installation.
* cartesian_tournament to run a simple tournament
  - cartesian_tournament runs a simple tournament similar to Genius tournaments.
  - create_cartesian_tournament creates a simple Cartesian tournament but does not run it. To run the tournament, call run_tournament passing it the returned path from create_cartesian_tournament.
* fix: requirements-visualizer.txt to reduce vulnerabilities
* Group2 defaults to Y2015Group2 in gnegotaitors
* adding Ateamagent beside AteamAgent
* Correcting few gnegotiator names
* standardizing some gnegotiator names
* renaming ateamAgent -> AteamAgent in genius
* Adding some missing Genius negotiators to gnegotiators.py

Release 0.10.1
--------------

* various bugfixes
* Updating ginfo (Genius Information) with ANAC competition information up to the end of genius support and partial information for geniusweb years

Release 0.10.0
--------------

* removing offer from SAO's respond() method.
* allowing users to step worlds from the point of view of a set of agents ignoring simulation step boundaries and passing external actions if needed. See World.step() for details.

Release 0.9.8
-------------

* Restructuring tests
* Using Numba only with python 3.10
* Always using with when opening files
* Adding more info about anac results
* [SAO] Completely removing support for avoid_ultimatum
* [SAO] Adding fallbacks to respond() calls in SAO to support the API with and
  without source. The later API will be dropped later.
* [Preferences] Adding has_ufun to Rational to check if it has a `BaseUtilityFunction`
  as its preferences.
* [Genius] More details on errors from genius bridge
* [Genius] bugfix when starting genius negotitauions with no n-steps (sometims)
* [CLI] supporting genius negotiators in the negotiate.py cli
	Pass -n geinus.<agent-name> or genius:<agent-name>
	The agent-name can be just the full java class name, or a simplified
	version that is all lower without the word agent and without _

Release 0.9.7
-------------
* minor bugfixes

Release 0.9.6
-------------

* [python] Supporting 3.11 and dropping support for 3.8 and 3.9
* [test] Adding 3.11 to tests
* [major] Adding Generalized Bargaining Protocols
* [buffix] testing saving exceptions in SAO
* [bugfix] Avoid failure if a config folder for negmas does not exist
* [minor] avoid a warning when setting preferences explicitly
* [minor] Moving shortest_unique_names to strings.py from misc.py
* [cli] renaming the 50% column to median in scores
* [feature] Adjustable config paths. Now all paths and configs are adjustable using environement variables, a global json file or a local json file. See `negmas_config` under `negmas.config` for more details.
* [feature] Adding calculation of Kalai-points, max-welfare-points and max-relative-welfare points and making nash_points return all nash points (previously we had nash_point() which returned just one)

Release 0.9.5
-------------

* defaulting to full type name in NamedObject
* Removing a couple of warnings

Release 0.9.4
-------------

* removing dependence on tqdm and printing by rich
* using rich progressbar in run_with_progress

Release 0.9.3
-------------

* feature: added serialization to yaml and json in Scenario
* feature: adding shorten_type_field to serialize()
* feature: Adding future annotations for 3.8 compatibility   (tests)
* bugfix: resetting() controllers now kills negs.
* bugfix: Ensuring that counter_all() is called every step for SAOSyncController
* enhancement: extra check in SyncController
* enhancement: Rejects offers for unregistered negotiators
* bugfix: SAOSyncController not receiving first_proposals before counter_all
* enhancement: SAOMechanism extra assertions
* enhancement: improved type annotations
* feature: Adding ExpAspiration time curve
* feature: Adding more acceptance strategies
* enhancement: Restructuring the situated module

Release 0.9.2
-------------

* Improving caching
* Renaming modeling advanced module to models
* optimizing imports
* removing the need for extra_state()
* changing some of the core classes to use attrs
* switching to setup.cfg and adding pytoml.yml
* performance improvement and code sorting
* more basic acceptance strategies

Release 0.9.1
-------------

* caching offer in the offering strategy
* Avoids repeated calls to the offering strategy in SAOModuler if it was
  called for example by the acceptance strategy then again by the mechanism.
* Purifying protocols
* correcting info for ANAC 2014
* Implementing not for AcceptanceStrategy and adding RejectionStrategy to invert the decision of an AcceptanceStrategy
* Supporting normalized ufuns in TFT
* Added ZeroSumModel as a simple opponent model (assumes a zero-sum negotiation)
* Refactored NTFT to use this model
* Removed the unnecesasry ConcessionEstimator classes

Release 0.9.0
-------------

This is a major release and it is **not** backward compatible. Please reference
the upgrade guide at the upgrdade guide_.

.. _guide: https://negmas.readthedocs.io/en/latest/upgrade_guide.html

Some of the most important changes are:

* Introduces the `ModularNegotiator` and `Component` objects to simplify reuse of negotiation strategies through composition instead of inheritance.
* Restructures most of the code-base for readability.
* Completed the tutorial.
* Simplified several key methods.
* Introduced the `SAOModularNegotiator`, `MAPNegotiator`, `BOANegotiator` as basic modular negotiators for the SAO mechanism as well as reusable components like `AcceptanceStrategy`, and `OfferingStrategy`


Release 0.8.9
-------------

* [sao] improvement to the plot() method of SAOMechanism
* [genius] Almost complete rewriting of the genius-bridge. Now we are
  compatible with genius*bridge v0.2.0
* [genius] Renaming get_genius_agents() to get_anac_agents()
* [genius] Updating TEST_FAILING_NEGOTIATORS and adding ALL_GENIUS_NEGOTIATORS,
  ALL_BASIC_GENIUS_NEGOTIATORS to ginfo
* [core] Adding nash_point() to find the nash point of a set of ufuns (within
  the pareto frontier)
* [bugfix] plotting SAOMechanism instances with continuous Issue spaces work
  now
* [genius] Stricter GeniusNegotiator.  If strict=True is given to a
  GeniusNegotiator (or in an n_steps limited negotaition with strict not given
  at all), more tests are incorporated to make sure that the Genius agent is
  getting what it expects all the time.
* [sao] relative_time matches Genius behavior.  relative_time was equal to
  step/n_steps now it is (step+1)/(n_steps+1) This is only in the case of using
  n_steps as a limit of a mechanism.
* [tests] Extracting long genius tests out and running genius tests in CI
* [genius] Added is_installed to GeniusBridge and genius_bridge_is_installed()
* [bugfix] Handling wrong time perception in Genius agents
* [genius] Adding wxtra warnings for common timinig problems in SAO
    * A warning is now raised in either of the following cases:
        1. A mechanism is created with neither a time_limit nor n_step set
        2. A Genius agent tries to join a mechanism with both time_limit and
           n_steps set
    * We stopped using timeline.increment() inside the genius bridge and now
      pass the round number (step in negmas terms) directly from negmas.
      This should avoid any possibility of double counting
* [sao] Adding enforce_outcome_type to SAOMechanism
* [sao] Adding enforcement of issue value types SAOP
* [sao] Adding the ability to cast_outcome to Mechanism
* [genius] Adding relative_time to GeniusNegotiator which checks the time as perceived by the Genius Agent inside the JVM
* [genius] Improving the way tuple ouctomes are handled in GeniusNegotiator
* [tournament] Allowing truncated_mean in eval
* [cli] adding truncated_mean as a possible metric


Release 0.8.8
-------------

* [sao] Treating `None` as `(REJECT_OFFER, None)` in responses from counter_all()

Release 0.8.7
-------------

* [core] better normalization for random Linear*UFun
* [helpers] single_thread() context manager
* [bugfix] Partner params incorrectly passed in NegWorld

Release 0.8.6
-------------

* [core] Adding to_dict/from_dict to all ufun types
* [core] Better random LinearAdditiveUtilityFunction
* [core] better implementation of stepall and runall
* [core] implementing keep_order=False for stepall()
* [tournaments] Adding negotiation tournaments.
* [situated] shuffle_negotiations option in World
* [bugfix] SAOSyncController never loses offers

Release 0.8.5
-------------

*  [sao] Avoiding an issue with avoid-ultimatum if all agents sent None as their first offer
*  [situated] bugfix in reporting mechanism exceptions
*  [helpers] Adding one-thread mode
*  [situated] enable agent printing by default
*  [tournament] not setting log_negotiations for forced logs

Release 0.8.4
-------------

* [tournaments] udpating log_negotiations when forced to save logs
* [tournaments] saving negotiations
* [sao] bugfix AsporationController best_outcome
* [sao] avoiding repetition in trace and offers at the end
* [genius] disabling AgentTD
* [genius] disabling GeneKing
* [genius] testing only confirmed passing negotiators
* [genius] correcting some genius class names
* [testing] stronger genius testing
* [testing] shortening the time allowed for genius negotiators in tests

Release 0.8.3
-------------

* [genius] allowing the ufun of genius agents to be set anytime before negotiation start
* [core] bugfix. Type of issue value may be incorrect when exporting to xml
* formatting
* [bugfix] correcting getting partner agent names in controllers
* [elicitation] pandora unknowns sometimes were not set
* [helpers] bugfix in serialization: correctly serializing cloud pickalable objects
* [bugfix] some SAO mechanisms where timeouting without timeout set
* [genius] updating the set of tested genius agents

Release 0.8.2
-------------

* [sao] adding the ability to use sync-calls in SAOMechanism
* [situated] fixing not showing last step's conracts in draw

Release 0.8.1
-------------

*  [sao][bugfix] correctly handling unexpected timeouts (Usually Genius)
*  [minor] using warnings.warn instead or print whne appropriate
*  [sao] improving synchronous controller handling
*  [sao] correcting history storage. Avoiding repetition of the last offer sometimes
*  [core] better handling of extra state in Mechanism
*  [sao] default waiting is now 0 step and correcting times calculation
*  [tournament] [bugfix] correcting str conversion for TournamentResults
*  [sao] [bugfix] correcting storage of history in state
*  [core] Supporting python 3.9
*  [situated] bugfix when agents make exceptions (time was ignored)
*  [situated] forcing all agents not to print anything
*  [situated] forcing all agents not to print anything

Release 0.8.0
-------------

* [minor] ignoring some intentionally broken type checks
* [setup] Adding cloudpickle as a requirement for setup
* [situated] revealing all  methods of Agent in the AWI
* [genius] bugfix, forcing time_limit to be an int in genius
* [situated] Adding RunningNegotiationInfo to situated.__all__

Release 0.7.4
-------------

* [core] making the core SAONegotiator robust to missing ufuns.
* [core] allowing controllers to control the ID of negotiators
* [core] adding reset_timer to EventLogger and logging time
* [core] passing AMI to minmax [situated] reversing adapter and adapted
         names in Adapter to make sure that split(".")[-1] still gets the
         adapted name not the adapter name.
* [core] making Controller.negotiators return NegotiatorInfo
* [genius] bug fix in saving xml utils that broke the bridge
* [genius] get_genius_agents in genius.ginfo to find genius agents
* [situated] adding event logging to situated (unstable)
* [bugfix] removing color codes in log file (log.txt)
* [situated] adding more events (contracts/breaches)
* [testing] getting some genius related tests to pass
* [testing] avoiding failure on genius agents that cannot agree

Release 0.7.3
-------------

* [core] making the core SAONegotiator robust to missing ufuns.
* [core] allowing controllers to control the ID of negotiators
* [core] adding methods to find partner IDs and names
* [sao] Adding global_ufun to SAOSyncController
* [core] removing all all_contracts.csv from output keeping only contracts.csv withe full information.
* [core] Added serialization module for serializing objects in human readable format.
* [core] Added id as a parameter to all constructors of NamedObjects
* [core] dividing utilities.py into multiple modules
* This should not affect any external users.
* [core] removing an issue when deepcopying utility fucntions.
* [core] adding inverse_utility support
* [core] adding inverse ufun support
* [cli] removing unnecessry force flag
* [sao] adding allow_offering_just_rejected_offers
* [core] adding max_n_outcomes to Issue.sample
* adding parameters to mechanisms and worlds.
* [genius] improved the information on ANAC competition
* [genius] restructuring the module into a package
* [core] bugfix in LinearUtilityFunciton that calculated the weights
* incorrectly sometimes
* [genius] Adding close_gateway to GeniusBridge to close all connections
* [genius] Adding close_gateway to GeniusBridge to close all connections
* [genius] Added GeniusBridge with methods to control a bridge
* [genius] Now all GeniusNegotiator classes share the same bridge to avoid too much resource allocation but this may not be safe when running tournaments.
* [genius] compatible with bridge version 0.5
* [genius] compatible with bridge v0.3
* [genius] more exhaustive testing and resolving ending issue
* [genius] adding the skeleton to cancel unending agents
* [sao] allowing load_genius_domain to use any kwargs
* [core] adding imap to all mechanisms
* [core] Maps between issue name and index and back
* [core] Speeding issue enumeration
* [core] Enumerating faster for large outcome spaces.
* [core] Adding max_n_outcomes to functions that use outcome enumeration more consistently.
* [core] adding a warning for infinity ufun values
* [inout] bugfix a failure when reading some genius files

Release 0.6.15
--------------

* [tournaments] Default to faster tournaments
* [testing] Avoid failure on PyQT not installed
* [situated] agreement and contract validation:
  Agreement validation (is_valid_agreement) and contract validation
  (is_valis_valid_contract) are added to the World class. Using them
  a world designer can decide that an agreement (before signing) or
  a contract (after signing) is invalid and drop it so it is never
  executed. These contracts appear as 'dropped_contracts' in stats.
* [tournaments] Adding max_attempts parameter when running worlds.

Release 0.6.14
--------------

* [tournaments] Possible exclusion of competitors from dyn. non-comp.
* [tournaments] Adding dynamic non_competitors
* [situated] Allowing more return types from sign_all_contacts
* [tournaments] Avoid different stat lengths
* [situated, tournaments] Early break if time-limit is exceeded.
* [situated, tournaments] Early break if time-limit is exceeded.
* [situated, mechanisms, tournaments] Using perf_counter consistently to measure time.
* [situated,mechanisms] more robust relative time
* [setup] Removing installation of visualizer components in CI
* [tournaments] Avoid failure for empty stat files when combining tournaments
* [helpers] avoid trying to load empty files
* [tournament][bugfix] Error in concatenating multiple exceptions.
* [tournament][bugfix] Serial run was failing
* [situated] Avoiding relative_time > 1
* [mechanisms] Avoiding relative_time > 1
* [tournament] Saving temporary scores in tournaments by default
* [tournaments][bugfix] Tuples were causing exceptions when combining agent exceptions
* [bugfix] correcting NotImplementedError exception
* [situated] Avoid failure when returning non-iterable from sign_all_contracts
* [tournaments] better handling of continuation
* [tournament] Randomizing assigned config runs
* [tournament] adding extra exception and timing information to tournaments
* [docs] Documentation update
* [situated] Keeping details of who committed exceptions.
* [situated] For negotiation exceptions, the exception is registered for the agents
  owning all negotiators as it is not possible in World to know the
  negotiator from whom the exception originated.

Release 0.6.13
--------------

* [tournaments] defaulting to no logs or videos in tournaments.
* [base] bugfix: avoid calling parent in passthrough negotiator when it does not exist.
* [base] making PyQT optional

Release 0.6.12
--------------

* [docs] more tutorials and overview revampment
* [sao] Allowing max_wait to be passed as None defaulting to inf
* [sao] Passing the ufun to the meta-negotiator in SAOMetaNegotiatorController
* [base] unsetting the controller when killing a negotiator
* [base] setting default max_waits to infinity
* [base] defaulting to auto-kill negotiators in all controllers.py
* [base] Adding max_wait to void infinite loops with sync controllers

Release 0.6.11
--------------

* [base] removing a warning caused by passing dynamic_ufun
* [base] correctly passing ufun to all rational types
* [base] placeholder to support parallel runall in mechanism
* [base] LimitedOutcomesNegotiator does not offer what it will not accept
* [base] Bug fixes in Utilities and LimitedOutcomesNegotiator
* [performance] Caching first offers in SyncController.
* [performance] Reducing memory consumption of AspirationNegotiator
* [performance] Speeding up Mechanism.state
* [performance] Adding eval_all to UtilitityFunction to speedup multiple evaluations
* [docs] Improving the overview part of the documentation
* [docs] Documentation update
* [elicitation] Fixing documentation after renaming elicitors -> elicitation
* [elicitation] Adding AMI to elicitaition.User to know the step
* [elicitation] restructuring elicitors module and renaming it to elicitation
* [elicitation] correcting a bug in base elicitor
* [installation] Resolving an issue when blist is not installed
* [installation] Adding gif to requirements
* [installation] warn if gif generation failed
* reformatting and import optimization
* Removing eu from SAONegotiator because we have no opponent_models yet

Release 0.6.10
--------------

* [base] Refactoring to allow Negotiators, Controllers and Agents to have UFuns. Introduced the Rational type wich is a NamedObject with a ufun. Now Negotiators, Controllers, and Agents are all Rational types. This makes it easier to define ufuns for any of these objects.
  on_ufun_changed is now called immediately when the ufun is set but if an AMI is not found, the _ufun_modified flag is set and the rational object is responsible of calling on_ufun_changed after the nmi is defined. For Negotiators, this happen automatically
* [situated] Making negotiation requests with an empty output-space fail
* [testing] Correcting some testing edge casease
* [base] converting outcome_type in UtilityFunction to a property. To allow complex ufuns to set the outcome_type of their children
  recursively.
* [docs]. Using "Outocme" instead of Outcome for type hints. To avoid the nonsensical long types that were appearing in the
  documentation because Sphinx cannot find the Outcome type alias and
  rolls it to a long Union[.....] thing.
* [docs] documentation update

Release 0.6.9
-------------

- [sao] always calculating best outcome in AspirationNegotiator
- [utilities] making the calculation of utility ranges in minmax more robust
- [sao] Making SyncController default to the outcome with maximum utility in the first round instead of sending no response.
- [chain] moved to relative imports
- [negotiators] Removed the outcomes/reserved_value parameters when constructing RandomNegotiator
- [negotiators] Improvements to the implementation of Controller
- [sao] Adding SAOAspirationSingleAgreementController, SAOMetaController, SAORandomSyncController and improving the implementation of SAOSyncController and SAOSingleAgreementController
- adding more tests

Release 0.6.8
-------------

- [situated] Improving the description of partners and handling in
  request/run negotiations by having the caller being added to the
  partners list automatically if it has one item.
- adding a helper to find shortest_unique_names.
- Better adherence to the black format
- Documentation Update
- Separating configuration into config.py
- Moving CI to Github Actions
- Removing negotiation_info.csv and keeping only negotiations.csv
  Now negotiation.csv contains all the information about the negotiation
  that was scattered between it an negotiation_info.csv
- [situated] Adding the concept of a neg. group
- [bugfix] correcting the implementation of joining in
  SAOControlledNegotiator
- [negotiators] Making it possible to use the `AspirationMixin`
  for controllers.

Release 0.6.7
-------------

- Adding information about the agent in SAOState
- Preliminary GUI support
- Correcting the import of json_normalize to match
- Pandas 1.0
- Correcting the types of offers in SingleAgreement
- Documentation update (removing inherited members)

Release 0.6.6
-------------

- [tournament] Adding a string conversion to TournamentResults
- [sao] Adding SAOSingleAgreementController that is guaranteed to get
  at most one agreement only.
- [helperrs] Supporting dumping csv files in dump/load
- [situated] making _type_name add the module name to the class name
  before snake-casing it
- [situated] [bug] correcting cancellation_fraction implementation to
  take into account non-negotiated contracts

Release 0.6.5
-------------

- [helpers] making add_records more robust to input
- [bugfix] Resolving a bug in creating graphs while running a tournament

Release 0.6.4
-------------

- [situated] Cancellation fraction and Agreement fraction now consider only
  negotiated contracts

Release 0.6.3
-------------

- [situated] never fail for gif generation (just pass the exception)
- [CLI] Fixing a bug that prevented negmas tournament create from failing
  gracefully when not given a scorer/assigner/world-config or world-generator.

Release 0.6.2
-------------

- [mechanism] triggering a negotiator_exception even on negotiator exceptions
- [situated] adding a count of exceptions per agent
- [situated] counting exceptions in negotiations as exceptions by the owner agent
- [mechanism] adding mechanism abortion

Release 0.6.1
-------------

- [situated] Adding the method call to World and using it always
  when calling agents to count exceptions
- [situated] Adding n_*_exceptions to count exceptions happening in
  agents, simulation and negotiations
- [tournaments] Adding n_*_exceptions to the tournament Results
  structure (TournamentResults) reporting the number of exceptions
  that happened during the tournament from different types
- [tournament] adding more details to tournament results and andding world_stats.csv to the saved data
- [situated] handling compact world running better:
  - added a no_logs option to World that disables all logging including agent logging
  - Corrected the tournament running functions to deal correctly with worlds with no logs
- [tournament] adding path to tournament results

Release 0.6.0
-------------

- [situated] adding negotiation quotas and setting negotiator owner
- [base] adding accessor to negotiator's nmi and a setter for the owner
- [sao] removing deadlocks in SAOSyncController
- [tournament] allowing round-robin tournaments to have zero stage winners (which will resolve to one winner)
- [tournament] making median the default metric
- [base] on_negotiation_end is always sent to negotiators
- [base] Adding owner to negotiators to keep track of the agent owning a negotiator.
- [situated] Resolving a possible bug if the victims of a breach were more than one agent

Release 0.5.1
-------------

- [situated] Adding graph construction and drawing
- [situated] renaming contracts in TimeInAgreement to contracts_per_step to avoid name clashes
- [situated] Adding fine control for when are contracts to be signed relative to different main events during the simulation
- [situated] adding basic support for partial contract signature (contracts that are signed by some of the partners are now treated as unsigned until the rest of the partners sign them).
- [situated] changing signatures into a dict inside Contract objects to simplify searching them

Release 0.5.0
-------------

- [genius] adding ParsCat as a Genius Agent
- [situated] added agent specific logs to situated
- [situated] adding simulation steps after and before entity/contract execution
- [situated] adding ignore_contract to ignore contracts completely as if they were never concluded
- [siutated] adding dropped contracts to the possible contract types. Now contracts can be concluded, signed, nullified, erred, breached, executed, and dropped
- [situated] Correcting the implementation of TimeInAgreementMixin taking into account batch signing
- [situated] Added aggregate management of contract signing through sign_all_contracts and on_contracts_finalized. We still support the older sign_contract and on_contract_signed/cancelled as a fallback if sign_all_contracts and on_contracts_finalized are not overriden
- [situated] Now contract related callbacks are called even for contracts ran through run_negotaiation(s)
- [situated] added batch_signing to control whether contracts are signed one by one or in batch. Default is batch (that is different from earlier versions)
- [situated] added force_signing. If set to true, the sign_* methods are never called and all concluded negotiations are immediately considered to be signed. The callbacks on_contracts_finalized (and by extension on_contract_signed/cancelled) will still be called so code that used them will still work as expected. The main difference is in timing.
- replacing -float("inf") with float("-inf") everywhere

Release 0.4.4
-------------

- replacing -float("inf") with float("-inf") everywhere
- [core] avoid importing elicitation in the main negmas __init__
- [concurrent] renaming nested module to chain
- [documentation] improving module listing
- [concurrent] Adding a draft implementation of MultiChainMechanism with the corresponding negotiator
- [elicitors] adding a printout if blist is not available.
- [documentation] improving the structure of module documentation
- [core] Defaulting reserved_value to -inf instead of None and removing unnecessary tests that it is not None
- [core] default __call__ of UtilityFunction now raises an exception if there is an error in evaluating the utility value of an offer instead or returning None
- [core] Adding minmax and outcome_with_utility as members of UtilityFuction. Global functions of the same name are still there for backward compatibility
- [CLI] improving path management for windows environments.
- black formatting


Release 0.4.3
-------------

- [mechainsms] Allowing mechanisms to customize the AMI for each negotiator
- [concurrent] Adding ChainNegotiationMechanism as a first example of concurrent negotiation mechanisms.
- [core] avoiding an import error due to inability to compile blist in windows
- [core] removing the global mechanisms variable and using an internal _mechanism pointer in AMI instead.

Release 0.4.2
-------------

- [situated] Adding events to logging and added the main event types to the documentation of the situated module
- [situated] Do not create log folder if it is not going to be used.
- [negotiators] adding parent property to negotiator to access its controller

Release 0.4.1
-------------

- [Situated] adding accepted_negotiations and negotiation_requests to Agent (see the documentation for their use).
- [Situated] Now running_negotiations will contain both negotiations requested by the agent and negotiations accepted by it.
- [helpers] Adding microseconds to unique_name when add_time is True
- [Setup] separating requirements for elicitation and visualization to avoid an issue with compiling blist on windows machines unnecessarily if elicitation is not used.
- [core] adding is_discrete as an alias to is_countable in Issue
- [style] styling the mediated negotiators with black
- [core] resolving a bug in random generation of outcomes for issues with a single possible value
- [situated] resolving a bug that caused negotiations ran using run_negotiations() to run twice
- [core] making SAO mechanism ignore issue names by default (use tuples instead of dicts) for negotiation
- [core] allowed json dumping to work with numpy values
- [bug fix] Random Utility Function did not have a way to get a reserved value. Now it can.
- [core] Merging a pull request: Add mediated protocols
- [core] using num_outcomes instead of n_outcomes consistently when asking for n. outcomes of a set of issues
- [core] improving the robustness of Issue by testing against Integral, Real, and Number instead of int and float for interoperability with numpy
- [core] converted Issue.cardinality to a read-only property
- [core] converted Issue.values to a read-only property
- [core] improving the implementation of Issue class. It is now faster and supports Tuple[int, int] as values.
- [doc] preventing setting theme explicitly on RTD
- [doc] minor readme edit
- [doc] correcting readme type on pypi


Release 0.4.0
--------------

- Moving the SCML world to its own repository (https://github.com/yasserfarouk/scml)

Release 0.3.9
-------------

- Minor updates to documentation and requirements to avoid issues with pypi rendering and Travis-CI integration.

Release 0.3.8
-------------

- [Core][SAO] allowed AspirationNegotiator to work using sampling with infinite outcome spaces by not presorting.
- [Core][Outcome] bug fix in outcome_as_tuple to resolve an issue when the input is an iterable that is not a tuple.
- Documentation update for AspirationNegotiator

Release 0.3.7
-------------

- [Core][Tutorials] fix documentation of "Running existing negotiators"
- [Core][Utility] fixing a bug in xml() for UtilityFunction
- [Core][Documentation] adding documentation for elicitors, and modeling
- [Core][Genius] allowing Genius negotiators to be initialized using a ufun instead of files.
- [Core][Genius] Adding some built-in genius negotiators (Atlas3, AgentX, YXAgent, etc)
- [Core][Modeling] restructuring modeling into its own packages with modules for utility, strategy, acceptance and future modeling.
- [Core][Modeling] Adding regression based future modeling
- adding python 3.8 to tox
- [Core][Outcomes] adding functions to generate outcomes at a given utility, find the range of a utility function, etc
- [Core] restoring compatibility with python 3.6
- [Core][Elicitation, Modeling] Added utility elicitation and basic acceptance modeling (experimental)


Release 0.3.6
-------------

- Documentation Update.
- Adding LinearUtilityFunction as a simple way to implement linear utility functions without the need to use
  LinearAdditiveUtilityFunction.
- [Setup] Removing dash dependency to get TravisCI to work
- [Core] Correcting the implementation of the aspiration equation to match Baarslag's equation.
- updating the requirements in setup.py
- [Visualizer] Adding visualizer basic interface. Very experimental
- Adding placeholders for basic builtin entities
- [Core] basic tests of checkpoints
- [Core] adding time to info when saving a checkpoint and smaller improvments
- [Core] updating the use of is_continuous to is_countable as appropriate (bug fix)
- [Core] exposing load from helpers
- [Core] testing is_countable
- [SingleText] renaming is_acceptable to is_acceptable_as_agreement
- [Core] Sampling with or without replacement from issues with values defined by a callable now return the same result
- [Core] Allowing creator of AspirationNegotiator to pass max/min ufun values
- [Core] Adding Negotiator.ufun as an alias to Negotiator.ufun
- [Core] Allowing agreements from mechanisms to be a list of outcomes instead of one outcome
- [Core] adding current_state to MechanismState
- [Situated] [bug fix] run_negotiations was raising an exception if any partner refused to negotiation (i.e. passed a None negotiator).
- [Core][Outcomes] Adding support for issues without specified values. In this case, a callable must be given that can generate random values from the unknown issue space. Moreover, it is assumed that the issue space is uncountable (It may optionally be continuous but it will still be reported as uncountable).
- [Core] Implementing checkpoint behavior in mechanisms and worlds.
- Added checkpoint and from_checkpoint to NamedObject.
- Added CheckpointMixin in common to allow any class to automatically save checkpoints.
- [Core][Genius] Resolving a bug that prevented genius negotiators from starting.
- [SCML] converted InputOutput to a normal dataclass instead of it being frozen to simplify checkpoint implementation.
- [Core] Allow agents to run_negotiation or run_negotiations when they do not intend to participate in the negotiations.
- [Mechanisms] Adding Mechanism.runall to run several mechanisms concurrently
- [SAO] Added Waiting as a legal response in SAO mechanism
- [SAO] Added SAOSyncController which makes it easy to synchronize response in multiple negotiations
- [Situated] Correcting the implementation of run_negotiations (not yet tested)
- [SAO] adding the ability not to consider offering as acceptance. When enabled, the agent offering an outcome is not considered accepting it. It will be asked again about it if all other agents accepted it. This is a one-step free decommitment
- [Situated] exposing run_negotiation and run_negotiations in AgentWorldInterface
- [Situated] bug fix when competitor parameters are passed to a multistaged tournament
- [Situated] Avoiding an issue with competitor types that do not map directly to classes in tournament creation
- [Core][Situated] adding type-postfix to modify the name returned by type_name property in all Entities as needed. To be used to distinguish between competitors of the same type with different parameters in situated.
- [Core][Situated] using correct parameters with competitors in multistage tournaments
- [Core][Single Text] deep copying initial values to avoid overriding them.
- [Core][Common] Added results to all mechanism states which indicates after a negotiation is done, the final results. That is more general than agreement which can be a complete outcome only. A result can be a partial outcome, a list of outcomes, or even a list of issues. It is intended o be used in MechanismSequences to move from one mechanims to the next.
- added from_outcomes to create negotiation issues from outcomes
- updating nlevelscomparator mixin


Release 0.3.5
-------------

- [Core][SingleText] Adding single-text negotiation using Veto protocol
- [Core][Utilities] correcting the implementation of is_better
- [Core][Negotiators] Adding several extra honest negotiators that map functionality from the utility function. These are directly usable in mediated protocols
- bug fix: Making sure that step_time_limit is never None in the mechanism. If it is not given, it becomes -inf (the same as time_limit)
- [Core][Utilities] Adding several comparison and ranking methods to ufuns
- [Core][Event] improving the notification system by adding add_handler, remove_handler, handlers method to provide moduler notification handling.
- removing unnecessary warning when setting the ufun of a negotiator after creation but before the negotiation session is started


Release 0.3.4
-------------

- Adding NoResponsesMixin to situated to simplify development of the simplest possible agent for new worlds


Release 0.3.3
-------------

- time_limit is now set to inf instead of None to disable it
- improving handling of ultimatum avoidance
- a round of SAO now is a real round in the sense of Reyhan et al. instead of a single counteroffer
- improved handling of NO_RESPONSE option for SAO
- updates to help with generalizing tournaments
- updating dependencies to latest versions
- Bump notebook from 5.7.4 to 5.7.8 in /docs
- Bump urllib3 from 1.24.1 to 1.24.2 in /docs



Release 0.3.2
-------------

- updating dependencies to latest versions

Release 0.3.1
-------------

- [Situated] Correcting multistage tournament implementation.

Release 0.3.0
-------------
- [Situated] adding StatsMonitor and WorldMonitor classes to situated
- [Situated] adding a parameter to monitor stats of a world in real-time
- [Situated] showing ttest/kstest results in evaluation (negmas tournament commands)
- [SCML] adding total_balance to take hidden money into account for Factory objects and using it in negmas tournament and negmas scml
- [SCML] enabling --cw for collusion
- [SCML] adding hidden money to agent balance when evaluating it.
- [SCML] adding more debugging information to log.txt
- [Situated] adding multistage tournaments to tournament() function
- [Situated] adding control of the number of competitor in each world to create_tournament() and to negmas tournament create command
- [Core] avoid invalid or incomplete outcome proposals in SAOMechanism
- [Situated] adding metric parameter to evaluate_tournaments and corrsponding tournament command to control which metric is used for calculating the winner. Default is mean.
- [SCML] adding the ability to prevent CFP tampering and to ignore negotiated penalties to SCMLWorld
- [SCML] adding the possibility of ignore negotiated penalty in world simulation
- [SCML] saving bankruptcy events in stats (SCML)
- [SCML] improving bankruptcy processing
- [SCML] deep copying of parameters in collusion
- [Situated] saving extra score stats in evaluate_tournament
- [Core] avoiding a future warning in pandas
- [Situated] more printing in winners and combine commands
- [Situated] removing unnecessary balance/storage data from combine_tournament_stats
- [Situated] adding aggregate states to evaluate_tournament and negmas tournament commands
- [Situated] adding kstest
- [Situated] adding and disabling dependent t-tests to evaluate_tournament
- [Situated] adding negmas tournament combine to combine and evaluate multiple tournaments without a common root
- [Situated] avoiding an exception if combine_tournament is called with no scores
- [Situated] always save world stats in tournaments even in compact mode
- [SCML] reversing sabotage score
- [SCML] correcting factory number capping
- [SCML] more robust consumer
- [Core] avoid an exception if a ufun is not defined for a negotiator when logging
- [SCML] controlling number of colluding agents using --agents option of negmas tournament create
- [SCML] changing names of assigned worlds and multiple runs to have a unique log per world in tournament
- [SCML] controlling warnings and exception printing
- [SCML] increasing default world timeout by 50%
- [SCML] removing penalty processing from greedy
- [Core] avoid negotiation failure for negotiator exceptions
- [SCML] correcting sabotage implementation
- [CLI] adding winners subcommand to negmas tournament
- [CLI] saving all details of contracts
- [CLI] adding --steps-min and --steps-max to negmas tournament create to allow for tournaments with variable number of steps
- [CLI] removing the need to add greedy to std competition in anac 2019
- [CLI] saving log path in negmas tournament create
- [CLI] removing errroneous logs
- [CLI] enabling tournament resumption (bug fix)
- [CLI] avoiding a problem when trying to create two tournaments on the same place
- [CLI] fairer random assignment
- [CLI] more printing in negmas tournament
- [CLI] using median instead of mean for evaluating scores
- [CLI] Allowing for passing --world-config to tournament create command to change the default world settings
- [CLI] adding a print out of running competitors for verbose create_tournament
- [CLI] adding --world-config to negmas scml
- [CLI] displaying results of negmas tournament evaluate ordered by the choosen metric in the table.
- [CLI] preventing very long names
- [CLI] allowing for more configs/runs in the tournament by not trying all permutations of factory assignments.
- [CLI] adding --path to negmas tournament create
- [CLI] more printing in negmas tournament
- [CLI] reducing default n_retrials to 2
- [CLI] changing optimism from 0.0 to 0.5
- [CLI] setting reserved_value to 0.0
- [CLI] run_tournament does not call evaluate_tournament now
- [SCML] always adding greedy to std. competitions in negmas tournament
- [SCML] reducing # colluding agents to 3 by default
- [CLI] restructuring the tournament command in negmas to allow for pipelining and incremental running of tournaments.
- [SCML] adding DefaultGreedyManager to manage the behavior of default agents in the final tournament
- [CLI] avoiding overriding tournament folders if the name is repeated
- [SCML] avoiding missing reserved_value in some cases in AveragingNegotiatorUfun
- [CLI] adding the ability to control max-runs interactively to negmas tournament
- [CLI] adding the ability to use a fraction of all CPUs in tournament with parallel execution
- [SCML] exceptions in signing contracts are treated as refusal to sign them.
- [SCML] making contract execution more robust for edge cases (quantity or unit price is zero)
- [SCML] making collusion tournaments in SCML use the same number of worlds as std tournaments
- [Situated] adding ignore_contract_execution_excptions to situated and apps.scml
- [CLI] adding --raise-exceptions/ignore-exceptions to control behavior on agent exception in negmas tournament and negmas scml commands
- [SCML] adding --path to negmas scml command to add to python path
- [SCML] supporting ignore_agent_exceptions in situated and apps.scml
- [Situated] removing total timeout by default


Release 0.2.25
--------------
- [Debugging support] making negmas scml behave similar to negmas tournament worlds
- [Improved robustness] making insurance calculations robust against rounding errors.
- [Internal change with no behavioral effect] renaming pay_insurance member of InsuranceCompany to is_insured to better document its nature
- [Debugging support] adding --balance to negmas scml to control the balance


Release 0.2.24
--------------
- separating ControlledNegotiator, ControlledSAONegotiator. This speeds up all simulations at the expense
  of backward incompatibility for the undocumented Controller pattern. If you are using this pattern, you
  need to create ControlledSAONegotiator instead of SAONegotiator. If you are not using Controller or you do not know
  what that is, you probably safe and your code will just work.
- adding logging of negotiations and offers (very slow)
- preventing miners from buying in case sell CFPs are posted.
- avoiding exceptions if the simulator is used to buy/sell AFTER simulation time
- adding more stats to the output of negmas scml command
- revealing competitor_params parameters for anac2019_std/collusion/sabotage. This parameter always existed
  but was not shown in the method signature (passed as part of kwargs).

Release 0.2.23
--------------

- Avoiding backward incompatibility issue in version 0.2.23 by adding INVALID_UTILITY back to both utilities
  and apps.scml.common

Release 0.2.22
--------------

- documentation update
- unifying the INVALID_UTILITY value used by all agents/negotiators to be float("-inf")
- Added reserved_value parameter to GreedyFactoryManager that allows for control of the reserved value used
  in all its ufuns.
- enable mechanism plotting without history and improving plotting visibility
- shortening negotiator names
- printing the average number of negotiation rounds in negmas scml command
- taking care of negotiation timeout possibility in SCML simulations

Release 0.2.21
--------------

- adding avoid_free_sales parameter to NegotiatorUtility to disable checks for zero price contracts
- adding an optional parameter "partner" to _create_annotation method to create correct contract annotations
  when response_to_negotiation_request is called
- Avoiding unnecessary assertion in insurance company evaluate method
- passing a copy of CFPs to on_new_cfp and on_cfp_removal methods to avoid modifications to them by agents.

Release 0.2.20
--------------

- logging name instead of ID in different debug log messages (CFP publication, rejection to negotiate)
- bug fix that caused GreedyFactoryManagers to reject valid negotiations

Release 0.2.19
--------------

- logging CFPs
- defaulting to buying insurance in negmas scml
- bug resolution related to recently added ability to use LinearUtilityFunction created by a dict with tuple
  outcomes
- Adding force_numeric to lead_genius_*

Release 0.2.18
--------------

- minor updates


Release 0.2.17
--------------

- allowing anac2019_world to receive keyword arguments to pass to chain_world
- bug fix: enabling parameter passing to the mechanism if given implicitly in MechanismFactory()
- receiving mechanisms explicitly in SCMLWorld and any other parameters of World implicitly

Release 0.2.16
--------------

- bug fix in GreedyFactoryManager to avoid unnecessary negotiation retrials.

Release 0.2.15
--------------

- Minor bug fix to avoid exceptions on consumers with None profile.
- Small update to the README file.


Release 0.2.14
--------------

- Documentation update
- simplifying continuous integration workflow (for development)

Release 0.2.13
--------------

- Adding new callbacks to simplify factory manager development in the SCM world: on_contract_executed,
  on_contract_breached, on_inventory_change, on_production_success, on_cash_transfer
- Supporting callbacks including onUfunChanged on jnegmas for SAONegotiator
- Installing jenegmas 0.2.6 by default in negmas jengmas-setup command

Release 0.2.12
--------------

- updating run scml tutorial
- tox setting update to avoid a break in latest pip (19.1.0)
- handling an edge case with both partners committing breaches at the same
  time.
- testing reduced max-insurance setting
- resolving a bug in contract resolution when the same agent commits
  multiple money breaches on multiple contracts simultaneously.
- better assertion of correct contract execution
- resolving a bug in production that caused double counting of some
  production outputs when multiple lines are executed generating the
  same product type at the same step.
- ensuring that the storage reported through awi.state or
  simulator.storage_* are correct for the current step. That involves
  a slight change in an undocumented feature of production. In the past
  produced products were moved to the factory storage BEFORE the
  beginning of production on the next step. Now it is moved AFTER the
  END of production of the current step (the step production was
  completed). This ensures that when the factory manager reads its
  storage it reflects what it actually have at all times.
- improving printing of RunningCommandInfo and ProductionReport
- regenerating setup.py
- revealing jobs in FactoryState
- handling a bug that caused factories to have a single line sometimes.
- revealing the dict jobs in FactoryState which gives the scheduled jobs
  for each time/line
- adding always_concede option to NaiveTitForTatNegotiator
- updating insurance premium percents.
- adding more tests of NaiveTitForTatNegotiator
- removing relative_premium/premium confusion. Now evaluate_premium will
  always return a premium as a fraction of the contract total cost not
  as the full price of the insurance policy. For a contract of value 30,
  a premium of 0.1 means 3 money units not 0.1 money units.
- adding --config option to tournament and scml commands of negmas CLI
  to allow users to set default parameters in a file or using
  environment variables
- unifying the meaning of negative numbers for max_insurance_premium to
  mean never buying insuance in the scheduler, manager, and app. Now you
  have to set max_insurance_premium to inf to make the system
- enforcing argument types in negmas CLI
- Adding DEFAULT_NEGOTIATOR constant to apps.scml.common to control the
  default negotiator type used by built-agents
- making utility_function a property instead of a data member of
  negotiator
- adding on_ufun_changed() callback to Negotiator instead of relying on
  on_nofitication() [relying on on_notification still works].
- deprecating passing dynamic_ufun to constructors of all negotiators
- removing special treatment of AspirationNegotiator in miners
- modifications to the implementation of TitForTatNegotiator to make it
  more sane.
- deprecating changing the utility function directly (using
  negotiator.ufun = x) AFTER the negotiation starts. It is
  still possible to change it up to the call to join()
- adding negmas.apps.scml.DEFAULT_NEGOTIATOR to control the default negotiator used
- improved parameter settings (for internal parameters not published in the SCML document)
- speeding up ufun dumping
- formatting update
- adding ufun logging as follows:

  * World and SCMLWorld has now log_ufuns_file which if not None gives a file to log the funs into.
  * negmas tournament and scml commands receive a --log-ufuns or --no-log-ufuns to control whether
    or not to log the ufuns into the tournament/world stats directory under the name ufuns.csv

- adding a helper add_records to add records into existing csv files.


Release 0.2.11
--------------
- minor bug fix

Release 0.2.10
--------------

- adding more control to negmas tournaments:

   1. adding --factories argument to control how many factories (at least) should exist on each production
      level
   2. adding --agents argument to control how many agents per competitor to instantiate. For the anac2019std
      ttype, this will be forced to 1

- adding sabotage track and anac2019_sabotage to run it
- updating test assertions for negotiators.
- tutorial update
- completed NaiveTitForTatNegotiator implementation


Release 0.2.9
-------------

- resolving a bug in AspirationNegotiator that caused an exception for ufuns with assume_normalized
- resolving a bug in ASOMechanism that caused agreements only on boundary offers.
- using jnegmas-0.2.4 instead of jnegmas-0.2.3 in negmas jnegmas-setup command


Release 0.2.8
-------------

- adding commands to FactoryState.
- Allowing JNegMAS to use GreedyFactoryManager. To do that, the Java factory manager must inherit from
  GreedyFactoryManager and its class name must end with either GreedyFactoryManager or GFM


Release 0.2.7
-------------

- improving naming of java factory managers in log files.
- guaranteeing serial tournaments when java factory managers are involved (to be lifter later).
- adding links to the YouTube playlist in README
- adhering to Black style


Release 0.2.6
-------------

- documentation update
- setting default world runs to 100 steps
- rounding catalog prices and historical costs to money resolution
- better defaults for negmas tournaments
- adding warnings when running too many simulations.
- added version command to negmas
- corrected the way min_factories_per_level is handled during tournament config creation.
- added --factories to negmas tournament command to control the minimum number of factories per level.
- improving naming of managers and factories for debugging purposes
- forcing reveal-names when giving debug option to any negmas command
- adding short_type_name to all Entity objects for convenient printing

Release 0.2.5
-------------

- improvements to ufun representation to speedup computation
- making default factory managers slightly less risky in their behavior in long simulations and more risky
  in short ones
- adding jnegmas-setup and genius-setup commands to download and install jenegmas and genius bridge
- removing the logger mixin and replaced it with parameters to World and SCMLWorld
- added compact parameter to SCMLWorld, tournament, and world generators to reduce the memory footprint
- added --compact/--debug to the command line tools to avoid memory and log explosion setting the default to
  --compact
- improving implementation of consumer ufun for cases with negative schedule
- changing the return type of SCMLAWI.state from Factory to FactoryState to avoid modifying the original
  factory. For efficiency reasons, the profiles list is passed as it is and it is possible to modify it
  but that is forbidden by the rules of the game.
- Speeding up and correcting financial report reception.
- Making bankruptcy reporting system-wide
- avoiding execution of contracts with negative or no quantity and logging ones with zero unit price.
- documentation update
- bug fix to resolve an issue with ufun calculation for consumers in case of over consumption.
- make the default behavior of negmas command to reveal agent types in their names
- preventing agents from publishing CFPs with the ID of other agents
- documentation update
- improved Java support
- added option default_dump_extension to ~/negmas/config.json to enable changing the format of dumps from json to yaml.
  Currently json is the default. This included adding a helper function helpers.dump() to dump in the selected format
  (or overriding it by providing a file extension).
- completing compatibility with SCML description (minor change to the consumer profile)
- added two new options to negmas tournament command: anac2019std and anac2019collusion to simulate these two tracks of
  the ANAC 2019 SCML. Sabotage version will be added later.
- added two new functions in apps.scml.utils anac2019_std, anac2019_collusion to simulate these two tracks of the ANAC
  2019 SCML. Sabotage version will be added later.
- added assign_managers() method to SCMLWorld to allow post-init assignment of managers to factories.
- updating simulator documentation

Release 0.2.2
-------------

* modifications to achieve compatibility with JNegMAS 0.2.0
* removing the unnecessary ufun property in Negotiator

Release 0.2.0
-------------

* First ANAC 2019 SCML release
* compatible with JNegMAS 0.2.0

Release 0.1.45
--------------

* implemented money and inventory hiding
* added sugar methods to SCMLAWI that run execute for different commands: schedule_production, stop_production, schedule_job, hide_inventory, hide_money
* added a json file ~/negmas/config.json to store all global configs
* reading jar locations for both jnegmas and genius-bridge from config file
* completed bankruptcy and liquidation implementation.
* removed the unnecessary _world parameter from Entity
* Added parameters to the SCML world to control compensation parameters and default price for products with no catalog prices.
* Added contract nullification everywhere.
* updated documentation to show all inherited members of all classes and to show all non-private members
* Removing the bulletin-board from the public members of the AWI

Release 0.1.42
--------------

* documentation improvement
* basic bankruptcy implementation
* bug fixes

Release 0.1.40
--------------

* documentation update
* implementing bank and insurance company disable/enable switches
* implementing financial reports
* implementing checks for bankruptcy in all built-in agents in SCML
* implementing round timeout in SAOMechanism

Release 0.1.33
--------------

* Moving to Travis CI for continuous integration, ReadTheDocs for documentation and Codacy for code quality

Release 0.1.32
--------------

* Adding partial support to factory manager development using Java
* Adding annotation control to SCML world simulation disallowing factory managers from sending arbitrary information to
  co-specifics
* Removing some unnecessary dependencies
* Moving development to poetry. Now we do not keep a setup.py file and rely on poetry install

Release 0.1.3
-------------

* removing some unnecessary dependencies that may cause compilation issues

Release 0.1.2
-------------

* First public release

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yasserfarouk/negmas",
    "name": "negmas",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "negotiation, mas, multi-agent, simulation, AI",
    "author": "Yasser Mohammad",
    "author_email": "yasserfarouk@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/76/24/4108f4281fbabc12c0c9316a19ee53dc95c4c2f38ab7533cc543b7580b9f/negmas-0.10.23.tar.gz",
    "platform": null,
    "description": "Overview\n========\n\n.. start-badges\n\n.. image:: https://img.shields.io/pypi/pyversions/negmas.svg\n    :target: https://pypi.python.org/pypi/negmas\n    :alt: Python\n\n.. image:: https://img.shields.io/pypi/status/negmas.svg\n    :target: https://pypi.python.org/pypi/negmas\n    :alt: Pypi\n\n.. image:: https://img.shields.io/pypi/l/negmas.svg\n    :target: https://pypi.python.org/pypi/negmas\n    :alt: License\n\n.. image:: https://img.shields.io/pypi/dm/negmas.svg\n    :target: https://pypi.python.org/pypi/negmas\n    :alt: Downloads\n\n.. image:: https://img.shields.io/codacy/grade/1b204fe0a69e41a298a175ea225d7b81.svg\n    :target: https://app.codacy.com/project/yasserfarouk/negmas/dashboard\n    :alt: Code Quality\n\n.. image:: https://img.shields.io/pypi/v/negmas.svg\n    :target: https://pypi.python.org/pypi/negmas\n    :alt: Pypi\n\n.. image:: https://github.com/yasserfarouk/negmas/workflows/CI/badge.svg\n    :target: https://www.github.com/yasserfarouk/negmas\n    :alt: Build Status\n\n.. image:: https://codecov.io/gh/yasserfarouk/negmas/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/yasserfarouk/negmas\n    :alt: Coverage Status\n\n.. image:: https://github.com/yasserfarouk/negmas/workflows/PyPI/badge.svg\n    :target: https://pypi.python.org/pypi/negmas\n    :alt: Published on Pypi\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/ambv/black\n    :alt: Coding style black\n\n.. image:: https://mybinder.org/badge_logo.svg\n    :target: https://mybinder.org/v2/gh/yasserfarouk/negmas/master\n\n.. image:: https://static.pepy.tech/personalized-badge/negmas?period=total&units=international_system&left_color=black&right_color=blue&left_text=Downloads\n :target: https://pepy.tech/projects/negmas\n\n.. end-badges\n\n.. container:: twocol\n\n   .. container:: leftside\n\n      .. image:: https://yasserfarouk.github.io/images/negmas-small.png\n            :width: 200\n            :alt: Negmas Logo\n\n   .. container:: rightside\n\n      NegMAS is a python library for developing autonomous negotiation agents embedded in simulation environments.\n      The name ``negmas`` stands for either NEGotiation MultiAgent System or NEGotiations Managed by Agent Simulations\n      (your pick). The main goal of NegMAS is to advance the state of the art in situated simultaneous negotiations.\n      Nevertheless, it can; and is being used; for modeling simpler bilateral and multi-lateral negotiations, preference elicitation\n      , etc.\n\n.. note::\n\n    * A YouTube playlist to help you use NegMAS for ANAC2020_ SCM_ league can be found here_\n\n    .. _ANAC2020: http://web.tuat.ac.jp/~katfuji/ANAC2020\n    .. _SCM: http://web.tuat.ac.jp/~katfuji/ANAC2020/#scm\n    .. _here: https://www.youtube.com/playlist?list=PLqvs51K2Mb8IJe5Yz5jmYrRAwvIpGU2nF\n\nIntroduction\n============\n\nThis package was designed to help advance the state-of-art in negotiation research by providing an easy-to-use yet\npowerful platform for autonomous negotiation targeting situated simultaneous negotiations.\nIt grew out of the NEC-AIST collaborative laboratory project.\n\nBy *situated* negotiations, we mean those for which utility functions are not pre-ordained by fiat but are a natural\nresult of a simulated business-like process.\n\nBy *simultaneous* negotiations, we mean sessions of dependent negotiations for which the utility value of an agreement\nof one session is affected by what happens in other sessions.\n\nThe documentation is available at: documentation_  (Automatically built versions are available on readthedocs_ )\n\n.. _documentation: https://negmas.readthedocs.io/en/latest/\n.. _readthedocs: https://negmas.readthedocs.io/en/latest/\n\nMain Features\n=============\n\nThis platform was designed with both flexibility and scalability in mind. The key features of the NegMAS package are:\n\n#. The public API is decoupled from internal details allowing for scalable implementations of the same interaction\n   protocols.\n#. Supports agents engaging in multiple concurrent negotiations.\n#. Provides support for inter-negotiation synchronization either through coupled utility functions or through central\n   *controllers*.\n#. Provides sample negotiators that can be used as templates for more complex negotiators.\n#. Supports both mediated and unmediated negotiations.\n#. Supports both bilateral and multilateral negotiations.\n#. Novel negotiation protocols and simulated *worlds* can be added to the package as easily as adding novel negotiators.\n#. Allows for non-traditional negotiation scenarios including dynamic entry/exit from the negotiation.\n#. A large variety of built in utility functions.\n#. Utility functions can be active dynamic entities which allows the system to model a much wider range of dynamic ufuns\n   compared with existing packages.\n#. A distributed system with the same interface and industrial-strength implementation is being created allowing agents\n   developed for NegMAS to be seemingly employed in real-world business operations.\n\nTo use negmas in a project\n\n.. code-block:: python\n\n    import negmas\n\nThe package was designed for many uses cases. On one extreme, it can be used by an end user who is interested in running\none of the built-in negotiation protocols. On the other extreme, it can be used to develop novel kinds of negotiation\nagents, negotiation protocols, multi-agent simulations (usually involving situated negotiations), etc.\n\nRunning existing negotiators/negotiation protocols\n==================================================\n\nUsing the package for negotiation can be as simple as the following code snippet:\n\n.. code-block:: python\n\n    import random\n    from negmas import SAOMechanism, AspirationNegotiator, MappingUtilityFunction\n\n    session = SAOMechanism(outcomes=10, n_steps=100)\n    negotiators = [AspirationNegotiator(name=f\"a{_}\") for _ in range(5)]\n    for negotiator in negotiators:\n        session.add(\n            negotiator, preferences=MappingUtilityFunction(lambda x: random.random() * x[0])\n        )\n    session.run()\n\nIn this snippet, we created a mechanism session with an outcome-space of *10* discrete outcomes that would run for *10*\nsteps. Five agents with random utility functions are then created and *added* to the session. Finally the session is\n*run* to completion. The agreement (if any) can then be accessed through the *state* member of the session. The library\nprovides several analytic and visualization tools to inspect negotiations. See the first tutorial on\n*Running a Negotiation* for more details.\n\nDeveloping a negotiator\n=======================\n\nDeveloping a novel negotiator slightly more difficult by is still doable in few lines of code:\n\n.. code-block:: python\n\n    from negmas.sao import SAONegotiator\n\n\n    class MyAwsomeNegotiator(SAONegotiator):\n        def propose(self, state):\n            \"\"\"Your code to create a proposal goes here\"\"\"\n\nBy just implementing `propose()`, this negotiator is now capable of engaging in alternating offers\nnegotiations. See the documentation of `Negotiator` and `SAONegotiator` for a full description of available functionality out of the box.\n\nDeveloping a negotiation protocol\n=================================\n\nDeveloping a novel negotiation protocol is actually even simpler:\n\n.. code-block:: python\n\n    from negmas import Mechanism, MechanismState\n\n\n    class MyNovelProtocol(Mechanism):\n        def __call__(self, state: MechanismState):\n            \"\"\"One round of the protocol\"\"\"\n\nBy implementing the single `__call__()` function, a new protocol is created. New negotiators can be added to the\nnegotiation using `add()` and removed using `remove()`. See the documentation for a full description of\n`Mechanism` available functionality out of the box.\n\n\nRunning a world simulation\n==========================\n\nThe *raison d'\u00eatre* for NegMAS is to allow you to develop negotiation agents capable of behaving in realistic\n*business like* simulated environments. These simulations are called *worlds* in NegMAS. Agents interact with each other\nwithin these simulated environments trying to maximize some intrinsic utility function of the agent through several\n*possibly simultaneous* negotiations.\n\nThe `situated` module provides all that you need to create such worlds. An example can be found in the `scml` package.\nThis package implements a supply chain management system in which factory managers compete to maximize their profits in\na market with only negotiations as the means of securing contracts.\n\n\nAcknowledgement\n===============\n\n.. _Genius: http://ii.tudelft.nl/genius\n\nNegMAS tests use scenarios used in ANAC 2010 to ANAC 2018 competitions obtained from the Genius_ Platform. These domains\ncan be found in the tests/data and notebooks/data folders.\n\nHistory\n=======\n\nRelease 0.10.23\n---------------\n\n* Tournament combination in Cartesian tournaments\n\n    * Cartesian tournaments were structured to allow for saving and loading\n    * Added load/save/combine to SimpleTournamentResults\n    * Added combine_tournament for combining on disk tournament results with control on copying and scenario renaming\n\n* Adding max-tasks-per-child to all tournaments\n* Supporting world-timeout in tournaments\n* Do not end tournaments if a single future timesout\n\nRelease 0.10.22\n---------------\n\n* Saving repeated runs in cartesian tournaments.\n* Adding sort_runs to cartesian tournaments. Passing sort_runs overrides randomize_runs and causes smaller scenarios to be negotiated first. Scenario's size is the product of the outcome-space cardinality, number of steps, and time-limits.\n* Improving parallelism in cartesian tournaments:\n\n  * Adding max-tasks-per-process\n  * Adding external_timeout to cartesian tournaments. This parameter is only effective for parallel runs and enforces and external timeout on all tasks. This will avoid waiting for slow negotiators but it has the disadvantage of causing the main thread to never end. Tournaments may now need C-c to end.\n* Adding _InfiniteWaiter negotiator for testing\n* Accepting None for hidden_time_limit in Mechanism.\n\nRelease 0.10.21\n---------------\n\n* More exception resistance in cartesian_tournament\n* Base Mechanism class now can ignore exceptions in initialization of agents\n* More consistent naming of methods involving negotiators\n\nRelease 0.10.20\n---------------\n\n* Matching the behavior of Genius in relative_time.\n  Originally, NegMAS used the following rule for relative_time R:\n\n  i = 0 => R = 0\n\n  i > 0 => R = min(1, max(t/T, (i+1)/(N+1)))\n\n  where i is the current step, t is current time, T is time_limit, N is\n  n_steps.\n\n  After this change the special case at i=0 is removed:\n\n  R = min(1, max(t/T, (i+1)/(N+1)))\n\n  This matches Genius behavior exactly if we have either T=\\infty or\n  N=\\infty.\n* More info in printing in cartesian verbose\n* Rounding output in cartesian verbose mode\n* Printing execution time in cartesian verbose\n\nRelease 0.10.19\n---------------\n\n* Saving erred-negotiator and erred-agent in MechanismState in case of errors in SAO  and related mechanisms\n* Saving details about errors (including traceback) in cartesian products (in all_scores.csv).\n\nRelease 0.10.18\n---------------\n\n* Improving the way some stats are saved in situated\n* CLI improvements\n\n  Now the \"negotiate\" CLI has a much better help. Try:\n\n  >> negotiate --help\n\n  Moreover, we added the ability to generate scenarios and save them as\n  well as more control over statistics\n\nRelease 0.10.17\n---------------\n\n* correcting the way some stats are saved. Avoids both double saving of stats in some cases and not saving them at all in others\n\nRelease 0.10.16\n---------------\n\n* Avoid controller failure if a wrong ID is passed\n\nRelease 0.10.15\n---------------\n\n* Making controllers generics for typing stability\n* Adding agent_names back to the NMI\n\nRelease 0.10.14\n---------------\n* Running bridge in slow actions\n* Adding a tutorial about using the genius bridge\n* Getting \"negmas genius\" to work as expected and adding more arguments to it\n* Making negotiators generics\n    * Adding conversion from GBState to SAOState even though it is not really needed. Not tested yet.\n* Making mechanisms and worlds generics\n* Link corrections in docs\n* Getting genius_id to work for all negotiators now\n* Migrating from black to ruff for formatting\n* Skipping stat combination tests\n* Adding plot_combined_stats and combine_stats in World\n* Fixing logo path\n\nRelease 0.10.13\n---------------\n* Minor coloring in tournaments\n* Adding plot_stats() and stat_names to World\n* Always using sync-calls when debugging\n* Testing hidden time limit\n* Better ufun generation. negmas.preferences.generators now have two functions:\n    generate_single_issue_ufuns and generate_multi_issue_ufuns. These can be\n    used to generate ufuns using any generator in the GENERATOR_MAP with\n    full control:\n    - can control issue, outcome and ufun names\n    - can control reserved values and/or rational fractions\n    - can control the type: numeric/string issues and linear-additive/mapping ufuns\n* MappingUFun returns -inf for non-existing outcomes\n* Now mapping ufuns will return 0.0 for unknown values not None\n* bugfix: fixing activity level and other stat calculation\n* Adding generate_multi_issue_ufuns. This generator generates a set of ufuns for a multi-issue scenario with\n    controllable pareto generators\n* Adding plotting to Scenario\n* doc: removing svg explicit setting\n\nRelease 0.10.12\n---------------\n* Adding GB to the mechanisms docs\n* Saving scenario figs by default in Cartesian tournaments\n* Showing inheritance graphs in docs\n\nRelease 0.10.11\n---------------\n* Adding TimeBasedOfferingStrategy\n* bugfix: Incorrect scenario names sometimes. Caused by updating the same scenario object in multiple consecutive runs specially when running serial tournaments.\n* feature: Negotiator logs in mechanisms\n\n    - Negotiators can use self.nmi.log_info to log information in the\n      mechanism that is accessible for any one who can access the mechanism.\n      log_warning, log_error, log_debug, log_critical are also available.\n    - Logs are stored as structured dicts that will be converted to data\n      frames. IT IS NECESSARY for all logs with the same key to have the\n      same EXACT keys and it is recommended for their values to have the\n      same type.\n    - Cartesian tournaments will now save these logs after the mechanism\n      ends if any are given and logging is enabled (i.e. path is passed to\n      cartesian_tournament()).\n\n    Limitations:\n\n       - You MUST pass a key (nid) to all log functions. If two different\n         negotiators passed the same key, these logs will be combined in a\n         single file. This may be too cooperative and confusing!!\n       - The logs are not returned in SimpleTournamentResults. If you need\n         to read the logs you must save logs to the HDD. This is by design\n         because these logs may be too large and keeping them to return them\n         after the tournament may consume too much memory. Currently, they\n         will be deleted from memory with the mechanism.\n\nRelease 0.10.10\n---------------\n\n* bugfix: Distributing integers correctly when approximate equality is wanted\n* bugfix: Caretsian tournaments not varying n_steps\n* bugfix: sample_between failing on small ranges\n\nRelease 0.10.9\n--------------\n\n* Correcting the path to the genius bridge\n* Adding plotting of offline runs\n* Better styling of plots\n* removing n_trials from generate_utility (not needed)\n* Full testing of ufun generators\n* Passing private_infos to cartesian tournaments\n* bugfix: Private info not passed from SAONegotiator\n* Supporting yaml for saving and loading domains\n\nRelease 0.10.8\n--------------\n\n* Adding exception handling and testing Cartesian Tournaments\n* Adding ufun generators with controlled Pareto\n* Stopping saving \"stats.json\" in tournaments. stats.csv contains the same information\n* Allowing nash calculation without ufuns\n* Exception handling in cartesian tournaments. Note that I assume that ignore_negotiator_exceptions can be passed to the mechanism class\n* intin and floatin in the helpers to sample.\n* Saving negotiator times in cartesian\n* Adding execution_time to cartesian logs\n* Finer conntrol on timing in Cartesian tournaments. Also recording negotiator times\n* Adding negotiator_times to Mechanisms\n* Finer control on mechanism printing\n* Ignoring some typing errors\n* Passing plot_params in cartesian_tournament\n\nRelease 0.10.7\n--------------\n* Saving path and controlling name-shortening in tournaments\n\nRelease 0.10.6\n--------------\n* Adding the ability to hide types in cartesian_tournament\n* Name but not ID reveals type cartesian_tournament by default\n* Removing neg/agent_names from NMI. Now negotiators have access to each other's ID but not name by default\n* Correcting sorter negotiator\n\nRelease 0.10.5\n--------------\n* Minor bugfixes\n\nRelease 0.10.4\n--------------\n* Adding simple tournaments and testing them\n* improving plotting and minor typing enhancement\n* bugfix in time-based\n* Reducing verbosity\n* passing kwargs back to Negotitors\n* Adding simple tournaments\n* Fixing a pandas warning\n* Renaming Scenario.agenda -> outcome_space\n\nRelease 0.10.3\n--------------\n* Switching to readthedocs.io\n* doc update\n* adding RandomAlwaysAcceptingNegotiator\n* Upgrading CI tests to use python 3.12 by default\n* avoid genius when calculating coverage\n* Do not test notebooks before release (avoid genius)\n* Empty results when a tournament has no scores\n\nRelease 0.10.2\n--------------\n\n* Adding RandomOfferGuaranteedAcceptance negotiator\n* Fixing some failures in testing some genius agents\n* [Snyk] Security upgrade pillow from 9.5.0 to 10.0.1\n* [Snyk] Security upgrade werkzeug from 2.2.3 to 3.0.1\n* [Snyk] Security upgrade pillow from 9.5.0 to 10.0.0\n* fix: docs/requirements.txt to reduce vulnerabilities\n* Updating tutorials, adding a tournament there\n* Fixing an installation bug: hypothesis was needed to run test_situated under negmas/tests. This prevented users from running the fast set of tests after installation.\n* cartesian_tournament to run a simple tournament\n  - cartesian_tournament runs a simple tournament similar to Genius tournaments.\n  - create_cartesian_tournament creates a simple Cartesian tournament but does not run it. To run the tournament, call run_tournament passing it the returned path from create_cartesian_tournament.\n* fix: requirements-visualizer.txt to reduce vulnerabilities\n* Group2 defaults to Y2015Group2 in gnegotaitors\n* adding Ateamagent beside AteamAgent\n* Correcting few gnegotiator names\n* standardizing some gnegotiator names\n* renaming ateamAgent -> AteamAgent in genius\n* Adding some missing Genius negotiators to gnegotiators.py\n\nRelease 0.10.1\n--------------\n\n* various bugfixes\n* Updating ginfo (Genius Information) with ANAC competition information up to the end of genius support and partial information for geniusweb years\n\nRelease 0.10.0\n--------------\n\n* removing offer from SAO's respond() method.\n* allowing users to step worlds from the point of view of a set of agents ignoring simulation step boundaries and passing external actions if needed. See World.step() for details.\n\nRelease 0.9.8\n-------------\n\n* Restructuring tests\n* Using Numba only with python 3.10\n* Always using with when opening files\n* Adding more info about anac results\n* [SAO] Completely removing support for avoid_ultimatum\n* [SAO] Adding fallbacks to respond() calls in SAO to support the API with and\n  without source. The later API will be dropped later.\n* [Preferences] Adding has_ufun to Rational to check if it has a `BaseUtilityFunction`\n  as its preferences.\n* [Genius] More details on errors from genius bridge\n* [Genius] bugfix when starting genius negotitauions with no n-steps (sometims)\n* [CLI] supporting genius negotiators in the negotiate.py cli\n\tPass -n geinus.<agent-name> or genius:<agent-name>\n\tThe agent-name can be just the full java class name, or a simplified\n\tversion that is all lower without the word agent and without _\n\nRelease 0.9.7\n-------------\n* minor bugfixes\n\nRelease 0.9.6\n-------------\n\n* [python] Supporting 3.11 and dropping support for 3.8 and 3.9\n* [test] Adding 3.11 to tests\n* [major] Adding Generalized Bargaining Protocols\n* [buffix] testing saving exceptions in SAO\n* [bugfix] Avoid failure if a config folder for negmas does not exist\n* [minor] avoid a warning when setting preferences explicitly\n* [minor] Moving shortest_unique_names to strings.py from misc.py\n* [cli] renaming the 50% column to median in scores\n* [feature] Adjustable config paths. Now all paths and configs are adjustable using environement variables, a global json file or a local json file. See `negmas_config` under `negmas.config` for more details.\n* [feature] Adding calculation of Kalai-points, max-welfare-points and max-relative-welfare points and making nash_points return all nash points (previously we had nash_point() which returned just one)\n\nRelease 0.9.5\n-------------\n\n* defaulting to full type name in NamedObject\n* Removing a couple of warnings\n\nRelease 0.9.4\n-------------\n\n* removing dependence on tqdm and printing by rich\n* using rich progressbar in run_with_progress\n\nRelease 0.9.3\n-------------\n\n* feature: added serialization to yaml and json in Scenario\n* feature: adding shorten_type_field to serialize()\n* feature: Adding future annotations for 3.8 compatibility   (tests)\n* bugfix: resetting() controllers now kills negs.\n* bugfix: Ensuring that counter_all() is called every step for SAOSyncController\n* enhancement: extra check in SyncController\n* enhancement: Rejects offers for unregistered negotiators\n* bugfix: SAOSyncController not receiving first_proposals before counter_all\n* enhancement: SAOMechanism extra assertions\n* enhancement: improved type annotations\n* feature: Adding ExpAspiration time curve\n* feature: Adding more acceptance strategies\n* enhancement: Restructuring the situated module\n\nRelease 0.9.2\n-------------\n\n* Improving caching\n* Renaming modeling advanced module to models\n* optimizing imports\n* removing the need for extra_state()\n* changing some of the core classes to use attrs\n* switching to setup.cfg and adding pytoml.yml\n* performance improvement and code sorting\n* more basic acceptance strategies\n\nRelease 0.9.1\n-------------\n\n* caching offer in the offering strategy\n* Avoids repeated calls to the offering strategy in SAOModuler if it was\n  called for example by the acceptance strategy then again by the mechanism.\n* Purifying protocols\n* correcting info for ANAC 2014\n* Implementing not for AcceptanceStrategy and adding RejectionStrategy to invert the decision of an AcceptanceStrategy\n* Supporting normalized ufuns in TFT\n* Added ZeroSumModel as a simple opponent model (assumes a zero-sum negotiation)\n* Refactored NTFT to use this model\n* Removed the unnecesasry ConcessionEstimator classes\n\nRelease 0.9.0\n-------------\n\nThis is a major release and it is **not** backward compatible. Please reference\nthe upgrade guide at the upgrdade guide_.\n\n.. _guide: https://negmas.readthedocs.io/en/latest/upgrade_guide.html\n\nSome of the most important changes are:\n\n* Introduces the `ModularNegotiator` and `Component` objects to simplify reuse of negotiation strategies through composition instead of inheritance.\n* Restructures most of the code-base for readability.\n* Completed the tutorial.\n* Simplified several key methods.\n* Introduced the `SAOModularNegotiator`, `MAPNegotiator`, `BOANegotiator` as basic modular negotiators for the SAO mechanism as well as reusable components like `AcceptanceStrategy`, and `OfferingStrategy`\n\n\nRelease 0.8.9\n-------------\n\n* [sao] improvement to the plot() method of SAOMechanism\n* [genius] Almost complete rewriting of the genius-bridge. Now we are\n  compatible with genius*bridge v0.2.0\n* [genius] Renaming get_genius_agents() to get_anac_agents()\n* [genius] Updating TEST_FAILING_NEGOTIATORS and adding ALL_GENIUS_NEGOTIATORS,\n  ALL_BASIC_GENIUS_NEGOTIATORS to ginfo\n* [core] Adding nash_point() to find the nash point of a set of ufuns (within\n  the pareto frontier)\n* [bugfix] plotting SAOMechanism instances with continuous Issue spaces work\n  now\n* [genius] Stricter GeniusNegotiator.  If strict=True is given to a\n  GeniusNegotiator (or in an n_steps limited negotaition with strict not given\n  at all), more tests are incorporated to make sure that the Genius agent is\n  getting what it expects all the time.\n* [sao] relative_time matches Genius behavior.  relative_time was equal to\n  step/n_steps now it is (step+1)/(n_steps+1) This is only in the case of using\n  n_steps as a limit of a mechanism.\n* [tests] Extracting long genius tests out and running genius tests in CI\n* [genius] Added is_installed to GeniusBridge and genius_bridge_is_installed()\n* [bugfix] Handling wrong time perception in Genius agents\n* [genius] Adding wxtra warnings for common timinig problems in SAO\n    * A warning is now raised in either of the following cases:\n        1. A mechanism is created with neither a time_limit nor n_step set\n        2. A Genius agent tries to join a mechanism with both time_limit and\n           n_steps set\n    * We stopped using timeline.increment() inside the genius bridge and now\n      pass the round number (step in negmas terms) directly from negmas.\n      This should avoid any possibility of double counting\n* [sao] Adding enforce_outcome_type to SAOMechanism\n* [sao] Adding enforcement of issue value types SAOP\n* [sao] Adding the ability to cast_outcome to Mechanism\n* [genius] Adding relative_time to GeniusNegotiator which checks the time as perceived by the Genius Agent inside the JVM\n* [genius] Improving the way tuple ouctomes are handled in GeniusNegotiator\n* [tournament] Allowing truncated_mean in eval\n* [cli] adding truncated_mean as a possible metric\n\n\nRelease 0.8.8\n-------------\n\n* [sao] Treating `None` as `(REJECT_OFFER, None)` in responses from counter_all()\n\nRelease 0.8.7\n-------------\n\n* [core] better normalization for random Linear*UFun\n* [helpers] single_thread() context manager\n* [bugfix] Partner params incorrectly passed in NegWorld\n\nRelease 0.8.6\n-------------\n\n* [core] Adding to_dict/from_dict to all ufun types\n* [core] Better random LinearAdditiveUtilityFunction\n* [core] better implementation of stepall and runall\n* [core] implementing keep_order=False for stepall()\n* [tournaments] Adding negotiation tournaments.\n* [situated] shuffle_negotiations option in World\n* [bugfix] SAOSyncController never loses offers\n\nRelease 0.8.5\n-------------\n\n*  [sao] Avoiding an issue with avoid-ultimatum if all agents sent None as their first offer\n*  [situated] bugfix in reporting mechanism exceptions\n*  [helpers] Adding one-thread mode\n*  [situated] enable agent printing by default\n*  [tournament] not setting log_negotiations for forced logs\n\nRelease 0.8.4\n-------------\n\n* [tournaments] udpating log_negotiations when forced to save logs\n* [tournaments] saving negotiations\n* [sao] bugfix AsporationController best_outcome\n* [sao] avoiding repetition in trace and offers at the end\n* [genius] disabling AgentTD\n* [genius] disabling GeneKing\n* [genius] testing only confirmed passing negotiators\n* [genius] correcting some genius class names\n* [testing] stronger genius testing\n* [testing] shortening the time allowed for genius negotiators in tests\n\nRelease 0.8.3\n-------------\n\n* [genius] allowing the ufun of genius agents to be set anytime before negotiation start\n* [core] bugfix. Type of issue value may be incorrect when exporting to xml\n* formatting\n* [bugfix] correcting getting partner agent names in controllers\n* [elicitation] pandora unknowns sometimes were not set\n* [helpers] bugfix in serialization: correctly serializing cloud pickalable objects\n* [bugfix] some SAO mechanisms where timeouting without timeout set\n* [genius] updating the set of tested genius agents\n\nRelease 0.8.2\n-------------\n\n* [sao] adding the ability to use sync-calls in SAOMechanism\n* [situated] fixing not showing last step's conracts in draw\n\nRelease 0.8.1\n-------------\n\n*  [sao][bugfix] correctly handling unexpected timeouts (Usually Genius)\n*  [minor] using warnings.warn instead or print whne appropriate\n*  [sao] improving synchronous controller handling\n*  [sao] correcting history storage. Avoiding repetition of the last offer sometimes\n*  [core] better handling of extra state in Mechanism\n*  [sao] default waiting is now 0 step and correcting times calculation\n*  [tournament] [bugfix] correcting str conversion for TournamentResults\n*  [sao] [bugfix] correcting storage of history in state\n*  [core] Supporting python 3.9\n*  [situated] bugfix when agents make exceptions (time was ignored)\n*  [situated] forcing all agents not to print anything\n*  [situated] forcing all agents not to print anything\n\nRelease 0.8.0\n-------------\n\n* [minor] ignoring some intentionally broken type checks\n* [setup] Adding cloudpickle as a requirement for setup\n* [situated] revealing all  methods of Agent in the AWI\n* [genius] bugfix, forcing time_limit to be an int in genius\n* [situated] Adding RunningNegotiationInfo to situated.__all__\n\nRelease 0.7.4\n-------------\n\n* [core] making the core SAONegotiator robust to missing ufuns.\n* [core] allowing controllers to control the ID of negotiators\n* [core] adding reset_timer to EventLogger and logging time\n* [core] passing AMI to minmax [situated] reversing adapter and adapted\n         names in Adapter to make sure that split(\".\")[-1] still gets the\n         adapted name not the adapter name.\n* [core] making Controller.negotiators return NegotiatorInfo\n* [genius] bug fix in saving xml utils that broke the bridge\n* [genius] get_genius_agents in genius.ginfo to find genius agents\n* [situated] adding event logging to situated (unstable)\n* [bugfix] removing color codes in log file (log.txt)\n* [situated] adding more events (contracts/breaches)\n* [testing] getting some genius related tests to pass\n* [testing] avoiding failure on genius agents that cannot agree\n\nRelease 0.7.3\n-------------\n\n* [core] making the core SAONegotiator robust to missing ufuns.\n* [core] allowing controllers to control the ID of negotiators\n* [core] adding methods to find partner IDs and names\n* [sao] Adding global_ufun to SAOSyncController\n* [core] removing all all_contracts.csv from output keeping only contracts.csv withe full information.\n* [core] Added serialization module for serializing objects in human readable format.\n* [core] Added id as a parameter to all constructors of NamedObjects\n* [core] dividing utilities.py into multiple modules\n* This should not affect any external users.\n* [core] removing an issue when deepcopying utility fucntions.\n* [core] adding inverse_utility support\n* [core] adding inverse ufun support\n* [cli] removing unnecessry force flag\n* [sao] adding allow_offering_just_rejected_offers\n* [core] adding max_n_outcomes to Issue.sample\n* adding parameters to mechanisms and worlds.\n* [genius] improved the information on ANAC competition\n* [genius] restructuring the module into a package\n* [core] bugfix in LinearUtilityFunciton that calculated the weights\n* incorrectly sometimes\n* [genius] Adding close_gateway to GeniusBridge to close all connections\n* [genius] Adding close_gateway to GeniusBridge to close all connections\n* [genius] Added GeniusBridge with methods to control a bridge\n* [genius] Now all GeniusNegotiator classes share the same bridge to avoid too much resource allocation but this may not be safe when running tournaments.\n* [genius] compatible with bridge version 0.5\n* [genius] compatible with bridge v0.3\n* [genius] more exhaustive testing and resolving ending issue\n* [genius] adding the skeleton to cancel unending agents\n* [sao] allowing load_genius_domain to use any kwargs\n* [core] adding imap to all mechanisms\n* [core] Maps between issue name and index and back\n* [core] Speeding issue enumeration\n* [core] Enumerating faster for large outcome spaces.\n* [core] Adding max_n_outcomes to functions that use outcome enumeration more consistently.\n* [core] adding a warning for infinity ufun values\n* [inout] bugfix a failure when reading some genius files\n\nRelease 0.6.15\n--------------\n\n* [tournaments] Default to faster tournaments\n* [testing] Avoid failure on PyQT not installed\n* [situated] agreement and contract validation:\n  Agreement validation (is_valid_agreement) and contract validation\n  (is_valis_valid_contract) are added to the World class. Using them\n  a world designer can decide that an agreement (before signing) or\n  a contract (after signing) is invalid and drop it so it is never\n  executed. These contracts appear as 'dropped_contracts' in stats.\n* [tournaments] Adding max_attempts parameter when running worlds.\n\nRelease 0.6.14\n--------------\n\n* [tournaments] Possible exclusion of competitors from dyn. non-comp.\n* [tournaments] Adding dynamic non_competitors\n* [situated] Allowing more return types from sign_all_contacts\n* [tournaments] Avoid different stat lengths\n* [situated, tournaments] Early break if time-limit is exceeded.\n* [situated, tournaments] Early break if time-limit is exceeded.\n* [situated, mechanisms, tournaments] Using perf_counter consistently to measure time.\n* [situated,mechanisms] more robust relative time\n* [setup] Removing installation of visualizer components in CI\n* [tournaments] Avoid failure for empty stat files when combining tournaments\n* [helpers] avoid trying to load empty files\n* [tournament][bugfix] Error in concatenating multiple exceptions.\n* [tournament][bugfix] Serial run was failing\n* [situated] Avoiding relative_time > 1\n* [mechanisms] Avoiding relative_time > 1\n* [tournament] Saving temporary scores in tournaments by default\n* [tournaments][bugfix] Tuples were causing exceptions when combining agent exceptions\n* [bugfix] correcting NotImplementedError exception\n* [situated] Avoid failure when returning non-iterable from sign_all_contracts\n* [tournaments] better handling of continuation\n* [tournament] Randomizing assigned config runs\n* [tournament] adding extra exception and timing information to tournaments\n* [docs] Documentation update\n* [situated] Keeping details of who committed exceptions.\n* [situated] For negotiation exceptions, the exception is registered for the agents\n  owning all negotiators as it is not possible in World to know the\n  negotiator from whom the exception originated.\n\nRelease 0.6.13\n--------------\n\n* [tournaments] defaulting to no logs or videos in tournaments.\n* [base] bugfix: avoid calling parent in passthrough negotiator when it does not exist.\n* [base] making PyQT optional\n\nRelease 0.6.12\n--------------\n\n* [docs] more tutorials and overview revampment\n* [sao] Allowing max_wait to be passed as None defaulting to inf\n* [sao] Passing the ufun to the meta-negotiator in SAOMetaNegotiatorController\n* [base] unsetting the controller when killing a negotiator\n* [base] setting default max_waits to infinity\n* [base] defaulting to auto-kill negotiators in all controllers.py\n* [base] Adding max_wait to void infinite loops with sync controllers\n\nRelease 0.6.11\n--------------\n\n* [base] removing a warning caused by passing dynamic_ufun\n* [base] correctly passing ufun to all rational types\n* [base] placeholder to support parallel runall in mechanism\n* [base] LimitedOutcomesNegotiator does not offer what it will not accept\n* [base] Bug fixes in Utilities and LimitedOutcomesNegotiator\n* [performance] Caching first offers in SyncController.\n* [performance] Reducing memory consumption of AspirationNegotiator\n* [performance] Speeding up Mechanism.state\n* [performance] Adding eval_all to UtilitityFunction to speedup multiple evaluations\n* [docs] Improving the overview part of the documentation\n* [docs] Documentation update\n* [elicitation] Fixing documentation after renaming elicitors -> elicitation\n* [elicitation] Adding AMI to elicitaition.User to know the step\n* [elicitation] restructuring elicitors module and renaming it to elicitation\n* [elicitation] correcting a bug in base elicitor\n* [installation] Resolving an issue when blist is not installed\n* [installation] Adding gif to requirements\n* [installation] warn if gif generation failed\n* reformatting and import optimization\n* Removing eu from SAONegotiator because we have no opponent_models yet\n\nRelease 0.6.10\n--------------\n\n* [base] Refactoring to allow Negotiators, Controllers and Agents to have UFuns. Introduced the Rational type wich is a NamedObject with a ufun. Now Negotiators, Controllers, and Agents are all Rational types. This makes it easier to define ufuns for any of these objects.\n  on_ufun_changed is now called immediately when the ufun is set but if an AMI is not found, the _ufun_modified flag is set and the rational object is responsible of calling on_ufun_changed after the nmi is defined. For Negotiators, this happen automatically\n* [situated] Making negotiation requests with an empty output-space fail\n* [testing] Correcting some testing edge casease\n* [base] converting outcome_type in UtilityFunction to a property. To allow complex ufuns to set the outcome_type of their children\n  recursively.\n* [docs]. Using \"Outocme\" instead of Outcome for type hints. To avoid the nonsensical long types that were appearing in the\n  documentation because Sphinx cannot find the Outcome type alias and\n  rolls it to a long Union[.....] thing.\n* [docs] documentation update\n\nRelease 0.6.9\n-------------\n\n- [sao] always calculating best outcome in AspirationNegotiator\n- [utilities] making the calculation of utility ranges in minmax more robust\n- [sao] Making SyncController default to the outcome with maximum utility in the first round instead of sending no response.\n- [chain] moved to relative imports\n- [negotiators] Removed the outcomes/reserved_value parameters when constructing RandomNegotiator\n- [negotiators] Improvements to the implementation of Controller\n- [sao] Adding SAOAspirationSingleAgreementController, SAOMetaController, SAORandomSyncController and improving the implementation of SAOSyncController and SAOSingleAgreementController\n- adding more tests\n\nRelease 0.6.8\n-------------\n\n- [situated] Improving the description of partners and handling in\n  request/run negotiations by having the caller being added to the\n  partners list automatically if it has one item.\n- adding a helper to find shortest_unique_names.\n- Better adherence to the black format\n- Documentation Update\n- Separating configuration into config.py\n- Moving CI to Github Actions\n- Removing negotiation_info.csv and keeping only negotiations.csv\n  Now negotiation.csv contains all the information about the negotiation\n  that was scattered between it an negotiation_info.csv\n- [situated] Adding the concept of a neg. group\n- [bugfix] correcting the implementation of joining in\n  SAOControlledNegotiator\n- [negotiators] Making it possible to use the `AspirationMixin`\n  for controllers.\n\nRelease 0.6.7\n-------------\n\n- Adding information about the agent in SAOState\n- Preliminary GUI support\n- Correcting the import of json_normalize to match\n- Pandas 1.0\n- Correcting the types of offers in SingleAgreement\n- Documentation update (removing inherited members)\n\nRelease 0.6.6\n-------------\n\n- [tournament] Adding a string conversion to TournamentResults\n- [sao] Adding SAOSingleAgreementController that is guaranteed to get\n  at most one agreement only.\n- [helperrs] Supporting dumping csv files in dump/load\n- [situated] making _type_name add the module name to the class name\n  before snake-casing it\n- [situated] [bug] correcting cancellation_fraction implementation to\n  take into account non-negotiated contracts\n\nRelease 0.6.5\n-------------\n\n- [helpers] making add_records more robust to input\n- [bugfix] Resolving a bug in creating graphs while running a tournament\n\nRelease 0.6.4\n-------------\n\n- [situated] Cancellation fraction and Agreement fraction now consider only\n  negotiated contracts\n\nRelease 0.6.3\n-------------\n\n- [situated] never fail for gif generation (just pass the exception)\n- [CLI] Fixing a bug that prevented negmas tournament create from failing\n  gracefully when not given a scorer/assigner/world-config or world-generator.\n\nRelease 0.6.2\n-------------\n\n- [mechanism] triggering a negotiator_exception even on negotiator exceptions\n- [situated] adding a count of exceptions per agent\n- [situated] counting exceptions in negotiations as exceptions by the owner agent\n- [mechanism] adding mechanism abortion\n\nRelease 0.6.1\n-------------\n\n- [situated] Adding the method call to World and using it always\n  when calling agents to count exceptions\n- [situated] Adding n_*_exceptions to count exceptions happening in\n  agents, simulation and negotiations\n- [tournaments] Adding n_*_exceptions to the tournament Results\n  structure (TournamentResults) reporting the number of exceptions\n  that happened during the tournament from different types\n- [tournament] adding more details to tournament results and andding world_stats.csv to the saved data\n- [situated] handling compact world running better:\n  - added a no_logs option to World that disables all logging including agent logging\n  - Corrected the tournament running functions to deal correctly with worlds with no logs\n- [tournament] adding path to tournament results\n\nRelease 0.6.0\n-------------\n\n- [situated] adding negotiation quotas and setting negotiator owner\n- [base] adding accessor to negotiator's nmi and a setter for the owner\n- [sao] removing deadlocks in SAOSyncController\n- [tournament] allowing round-robin tournaments to have zero stage winners (which will resolve to one winner)\n- [tournament] making median the default metric\n- [base] on_negotiation_end is always sent to negotiators\n- [base] Adding owner to negotiators to keep track of the agent owning a negotiator.\n- [situated] Resolving a possible bug if the victims of a breach were more than one agent\n\nRelease 0.5.1\n-------------\n\n- [situated] Adding graph construction and drawing\n- [situated] renaming contracts in TimeInAgreement to contracts_per_step to avoid name clashes\n- [situated] Adding fine control for when are contracts to be signed relative to different main events during the simulation\n- [situated] adding basic support for partial contract signature (contracts that are signed by some of the partners are now treated as unsigned until the rest of the partners sign them).\n- [situated] changing signatures into a dict inside Contract objects to simplify searching them\n\nRelease 0.5.0\n-------------\n\n- [genius] adding ParsCat as a Genius Agent\n- [situated] added agent specific logs to situated\n- [situated] adding simulation steps after and before entity/contract execution\n- [situated] adding ignore_contract to ignore contracts completely as if they were never concluded\n- [siutated] adding dropped contracts to the possible contract types. Now contracts can be concluded, signed, nullified, erred, breached, executed, and dropped\n- [situated] Correcting the implementation of TimeInAgreementMixin taking into account batch signing\n- [situated] Added aggregate management of contract signing through sign_all_contracts and on_contracts_finalized. We still support the older sign_contract and on_contract_signed/cancelled as a fallback if sign_all_contracts and on_contracts_finalized are not overriden\n- [situated] Now contract related callbacks are called even for contracts ran through run_negotaiation(s)\n- [situated] added batch_signing to control whether contracts are signed one by one or in batch. Default is batch (that is different from earlier versions)\n- [situated] added force_signing. If set to true, the sign_* methods are never called and all concluded negotiations are immediately considered to be signed. The callbacks on_contracts_finalized (and by extension on_contract_signed/cancelled) will still be called so code that used them will still work as expected. The main difference is in timing.\n- replacing -float(\"inf\") with float(\"-inf\") everywhere\n\nRelease 0.4.4\n-------------\n\n- replacing -float(\"inf\") with float(\"-inf\") everywhere\n- [core] avoid importing elicitation in the main negmas __init__\n- [concurrent] renaming nested module to chain\n- [documentation] improving module listing\n- [concurrent] Adding a draft implementation of MultiChainMechanism with the corresponding negotiator\n- [elicitors] adding a printout if blist is not available.\n- [documentation] improving the structure of module documentation\n- [core] Defaulting reserved_value to -inf instead of None and removing unnecessary tests that it is not None\n- [core] default __call__ of UtilityFunction now raises an exception if there is an error in evaluating the utility value of an offer instead or returning None\n- [core] Adding minmax and outcome_with_utility as members of UtilityFuction. Global functions of the same name are still there for backward compatibility\n- [CLI] improving path management for windows environments.\n- black formatting\n\n\nRelease 0.4.3\n-------------\n\n- [mechainsms] Allowing mechanisms to customize the AMI for each negotiator\n- [concurrent] Adding ChainNegotiationMechanism as a first example of concurrent negotiation mechanisms.\n- [core] avoiding an import error due to inability to compile blist in windows\n- [core] removing the global mechanisms variable and using an internal _mechanism pointer in AMI instead.\n\nRelease 0.4.2\n-------------\n\n- [situated] Adding events to logging and added the main event types to the documentation of the situated module\n- [situated] Do not create log folder if it is not going to be used.\n- [negotiators] adding parent property to negotiator to access its controller\n\nRelease 0.4.1\n-------------\n\n- [Situated] adding accepted_negotiations and negotiation_requests to Agent (see the documentation for their use).\n- [Situated] Now running_negotiations will contain both negotiations requested by the agent and negotiations accepted by it.\n- [helpers] Adding microseconds to unique_name when add_time is True\n- [Setup] separating requirements for elicitation and visualization to avoid an issue with compiling blist on windows machines unnecessarily if elicitation is not used.\n- [core] adding is_discrete as an alias to is_countable in Issue\n- [style] styling the mediated negotiators with black\n- [core] resolving a bug in random generation of outcomes for issues with a single possible value\n- [situated] resolving a bug that caused negotiations ran using run_negotiations() to run twice\n- [core] making SAO mechanism ignore issue names by default (use tuples instead of dicts) for negotiation\n- [core] allowed json dumping to work with numpy values\n- [bug fix] Random Utility Function did not have a way to get a reserved value. Now it can.\n- [core] Merging a pull request: Add mediated protocols\n- [core] using num_outcomes instead of n_outcomes consistently when asking for n. outcomes of a set of issues\n- [core] improving the robustness of Issue by testing against Integral, Real, and Number instead of int and float for interoperability with numpy\n- [core] converted Issue.cardinality to a read-only property\n- [core] converted Issue.values to a read-only property\n- [core] improving the implementation of Issue class. It is now faster and supports Tuple[int, int] as values.\n- [doc] preventing setting theme explicitly on RTD\n- [doc] minor readme edit\n- [doc] correcting readme type on pypi\n\n\nRelease 0.4.0\n--------------\n\n- Moving the SCML world to its own repository (https://github.com/yasserfarouk/scml)\n\nRelease 0.3.9\n-------------\n\n- Minor updates to documentation and requirements to avoid issues with pypi rendering and Travis-CI integration.\n\nRelease 0.3.8\n-------------\n\n- [Core][SAO] allowed AspirationNegotiator to work using sampling with infinite outcome spaces by not presorting.\n- [Core][Outcome] bug fix in outcome_as_tuple to resolve an issue when the input is an iterable that is not a tuple.\n- Documentation update for AspirationNegotiator\n\nRelease 0.3.7\n-------------\n\n- [Core][Tutorials] fix documentation of \"Running existing negotiators\"\n- [Core][Utility] fixing a bug in xml() for UtilityFunction\n- [Core][Documentation] adding documentation for elicitors, and modeling\n- [Core][Genius] allowing Genius negotiators to be initialized using a ufun instead of files.\n- [Core][Genius] Adding some built-in genius negotiators (Atlas3, AgentX, YXAgent, etc)\n- [Core][Modeling] restructuring modeling into its own packages with modules for utility, strategy, acceptance and future modeling.\n- [Core][Modeling] Adding regression based future modeling\n- adding python 3.8 to tox\n- [Core][Outcomes] adding functions to generate outcomes at a given utility, find the range of a utility function, etc\n- [Core] restoring compatibility with python 3.6\n- [Core][Elicitation, Modeling] Added utility elicitation and basic acceptance modeling (experimental)\n\n\nRelease 0.3.6\n-------------\n\n- Documentation Update.\n- Adding LinearUtilityFunction as a simple way to implement linear utility functions without the need to use\n  LinearAdditiveUtilityFunction.\n- [Setup] Removing dash dependency to get TravisCI to work\n- [Core] Correcting the implementation of the aspiration equation to match Baarslag's equation.\n- updating the requirements in setup.py\n- [Visualizer] Adding visualizer basic interface. Very experimental\n- Adding placeholders for basic builtin entities\n- [Core] basic tests of checkpoints\n- [Core] adding time to info when saving a checkpoint and smaller improvments\n- [Core] updating the use of is_continuous to is_countable as appropriate (bug fix)\n- [Core] exposing load from helpers\n- [Core] testing is_countable\n- [SingleText] renaming is_acceptable to is_acceptable_as_agreement\n- [Core] Sampling with or without replacement from issues with values defined by a callable now return the same result\n- [Core] Allowing creator of AspirationNegotiator to pass max/min ufun values\n- [Core] Adding Negotiator.ufun as an alias to Negotiator.ufun\n- [Core] Allowing agreements from mechanisms to be a list of outcomes instead of one outcome\n- [Core] adding current_state to MechanismState\n- [Situated] [bug fix] run_negotiations was raising an exception if any partner refused to negotiation (i.e. passed a None negotiator).\n- [Core][Outcomes] Adding support for issues without specified values. In this case, a callable must be given that can generate random values from the unknown issue space. Moreover, it is assumed that the issue space is uncountable (It may optionally be continuous but it will still be reported as uncountable).\n- [Core] Implementing checkpoint behavior in mechanisms and worlds.\n- Added checkpoint and from_checkpoint to NamedObject.\n- Added CheckpointMixin in common to allow any class to automatically save checkpoints.\n- [Core][Genius] Resolving a bug that prevented genius negotiators from starting.\n- [SCML] converted InputOutput to a normal dataclass instead of it being frozen to simplify checkpoint implementation.\n- [Core] Allow agents to run_negotiation or run_negotiations when they do not intend to participate in the negotiations.\n- [Mechanisms] Adding Mechanism.runall to run several mechanisms concurrently\n- [SAO] Added Waiting as a legal response in SAO mechanism\n- [SAO] Added SAOSyncController which makes it easy to synchronize response in multiple negotiations\n- [Situated] Correcting the implementation of run_negotiations (not yet tested)\n- [SAO] adding the ability not to consider offering as acceptance. When enabled, the agent offering an outcome is not considered accepting it. It will be asked again about it if all other agents accepted it. This is a one-step free decommitment\n- [Situated] exposing run_negotiation and run_negotiations in AgentWorldInterface\n- [Situated] bug fix when competitor parameters are passed to a multistaged tournament\n- [Situated] Avoiding an issue with competitor types that do not map directly to classes in tournament creation\n- [Core][Situated] adding type-postfix to modify the name returned by type_name property in all Entities as needed. To be used to distinguish between competitors of the same type with different parameters in situated.\n- [Core][Situated] using correct parameters with competitors in multistage tournaments\n- [Core][Single Text] deep copying initial values to avoid overriding them.\n- [Core][Common] Added results to all mechanism states which indicates after a negotiation is done, the final results. That is more general than agreement which can be a complete outcome only. A result can be a partial outcome, a list of outcomes, or even a list of issues. It is intended o be used in MechanismSequences to move from one mechanims to the next.\n- added from_outcomes to create negotiation issues from outcomes\n- updating nlevelscomparator mixin\n\n\nRelease 0.3.5\n-------------\n\n- [Core][SingleText] Adding single-text negotiation using Veto protocol\n- [Core][Utilities] correcting the implementation of is_better\n- [Core][Negotiators] Adding several extra honest negotiators that map functionality from the utility function. These are directly usable in mediated protocols\n- bug fix: Making sure that step_time_limit is never None in the mechanism. If it is not given, it becomes -inf (the same as time_limit)\n- [Core][Utilities] Adding several comparison and ranking methods to ufuns\n- [Core][Event] improving the notification system by adding add_handler, remove_handler, handlers method to provide moduler notification handling.\n- removing unnecessary warning when setting the ufun of a negotiator after creation but before the negotiation session is started\n\n\nRelease 0.3.4\n-------------\n\n- Adding NoResponsesMixin to situated to simplify development of the simplest possible agent for new worlds\n\n\nRelease 0.3.3\n-------------\n\n- time_limit is now set to inf instead of None to disable it\n- improving handling of ultimatum avoidance\n- a round of SAO now is a real round in the sense of Reyhan et al. instead of a single counteroffer\n- improved handling of NO_RESPONSE option for SAO\n- updates to help with generalizing tournaments\n- updating dependencies to latest versions\n- Bump notebook from 5.7.4 to 5.7.8 in /docs\n- Bump urllib3 from 1.24.1 to 1.24.2 in /docs\n\n\n\nRelease 0.3.2\n-------------\n\n- updating dependencies to latest versions\n\nRelease 0.3.1\n-------------\n\n- [Situated] Correcting multistage tournament implementation.\n\nRelease 0.3.0\n-------------\n- [Situated] adding StatsMonitor and WorldMonitor classes to situated\n- [Situated] adding a parameter to monitor stats of a world in real-time\n- [Situated] showing ttest/kstest results in evaluation (negmas tournament commands)\n- [SCML] adding total_balance to take hidden money into account for Factory objects and using it in negmas tournament and negmas scml\n- [SCML] enabling --cw for collusion\n- [SCML] adding hidden money to agent balance when evaluating it.\n- [SCML] adding more debugging information to log.txt\n- [Situated] adding multistage tournaments to tournament() function\n- [Situated] adding control of the number of competitor in each world to create_tournament() and to negmas tournament create command\n- [Core] avoid invalid or incomplete outcome proposals in SAOMechanism\n- [Situated] adding metric parameter to evaluate_tournaments and corrsponding tournament command to control which metric is used for calculating the winner. Default is mean.\n- [SCML] adding the ability to prevent CFP tampering and to ignore negotiated penalties to SCMLWorld\n- [SCML] adding the possibility of ignore negotiated penalty in world simulation\n- [SCML] saving bankruptcy events in stats (SCML)\n- [SCML] improving bankruptcy processing\n- [SCML] deep copying of parameters in collusion\n- [Situated] saving extra score stats in evaluate_tournament\n- [Core] avoiding a future warning in pandas\n- [Situated] more printing in winners and combine commands\n- [Situated] removing unnecessary balance/storage data from combine_tournament_stats\n- [Situated] adding aggregate states to evaluate_tournament and negmas tournament commands\n- [Situated] adding kstest\n- [Situated] adding and disabling dependent t-tests to evaluate_tournament\n- [Situated] adding negmas tournament combine to combine and evaluate multiple tournaments without a common root\n- [Situated] avoiding an exception if combine_tournament is called with no scores\n- [Situated] always save world stats in tournaments even in compact mode\n- [SCML] reversing sabotage score\n- [SCML] correcting factory number capping\n- [SCML] more robust consumer\n- [Core] avoid an exception if a ufun is not defined for a negotiator when logging\n- [SCML] controlling number of colluding agents using --agents option of negmas tournament create\n- [SCML] changing names of assigned worlds and multiple runs to have a unique log per world in tournament\n- [SCML] controlling warnings and exception printing\n- [SCML] increasing default world timeout by 50%\n- [SCML] removing penalty processing from greedy\n- [Core] avoid negotiation failure for negotiator exceptions\n- [SCML] correcting sabotage implementation\n- [CLI] adding winners subcommand to negmas tournament\n- [CLI] saving all details of contracts\n- [CLI] adding --steps-min and --steps-max to negmas tournament create to allow for tournaments with variable number of steps\n- [CLI] removing the need to add greedy to std competition in anac 2019\n- [CLI] saving log path in negmas tournament create\n- [CLI] removing errroneous logs\n- [CLI] enabling tournament resumption (bug fix)\n- [CLI] avoiding a problem when trying to create two tournaments on the same place\n- [CLI] fairer random assignment\n- [CLI] more printing in negmas tournament\n- [CLI] using median instead of mean for evaluating scores\n- [CLI] Allowing for passing --world-config to tournament create command to change the default world settings\n- [CLI] adding a print out of running competitors for verbose create_tournament\n- [CLI] adding --world-config to negmas scml\n- [CLI] displaying results of negmas tournament evaluate ordered by the choosen metric in the table.\n- [CLI] preventing very long names\n- [CLI] allowing for more configs/runs in the tournament by not trying all permutations of factory assignments.\n- [CLI] adding --path to negmas tournament create\n- [CLI] more printing in negmas tournament\n- [CLI] reducing default n_retrials to 2\n- [CLI] changing optimism from 0.0 to 0.5\n- [CLI] setting reserved_value to 0.0\n- [CLI] run_tournament does not call evaluate_tournament now\n- [SCML] always adding greedy to std. competitions in negmas tournament\n- [SCML] reducing # colluding agents to 3 by default\n- [CLI] restructuring the tournament command in negmas to allow for pipelining and incremental running of tournaments.\n- [SCML] adding DefaultGreedyManager to manage the behavior of default agents in the final tournament\n- [CLI] avoiding overriding tournament folders if the name is repeated\n- [SCML] avoiding missing reserved_value in some cases in AveragingNegotiatorUfun\n- [CLI] adding the ability to control max-runs interactively to negmas tournament\n- [CLI] adding the ability to use a fraction of all CPUs in tournament with parallel execution\n- [SCML] exceptions in signing contracts are treated as refusal to sign them.\n- [SCML] making contract execution more robust for edge cases (quantity or unit price is zero)\n- [SCML] making collusion tournaments in SCML use the same number of worlds as std tournaments\n- [Situated] adding ignore_contract_execution_excptions to situated and apps.scml\n- [CLI] adding --raise-exceptions/ignore-exceptions to control behavior on agent exception in negmas tournament and negmas scml commands\n- [SCML] adding --path to negmas scml command to add to python path\n- [SCML] supporting ignore_agent_exceptions in situated and apps.scml\n- [Situated] removing total timeout by default\n\n\nRelease 0.2.25\n--------------\n- [Debugging support] making negmas scml behave similar to negmas tournament worlds\n- [Improved robustness] making insurance calculations robust against rounding errors.\n- [Internal change with no behavioral effect] renaming pay_insurance member of InsuranceCompany to is_insured to better document its nature\n- [Debugging support] adding --balance to negmas scml to control the balance\n\n\nRelease 0.2.24\n--------------\n- separating ControlledNegotiator, ControlledSAONegotiator. This speeds up all simulations at the expense\n  of backward incompatibility for the undocumented Controller pattern. If you are using this pattern, you\n  need to create ControlledSAONegotiator instead of SAONegotiator. If you are not using Controller or you do not know\n  what that is, you probably safe and your code will just work.\n- adding logging of negotiations and offers (very slow)\n- preventing miners from buying in case sell CFPs are posted.\n- avoiding exceptions if the simulator is used to buy/sell AFTER simulation time\n- adding more stats to the output of negmas scml command\n- revealing competitor_params parameters for anac2019_std/collusion/sabotage. This parameter always existed\n  but was not shown in the method signature (passed as part of kwargs).\n\nRelease 0.2.23\n--------------\n\n- Avoiding backward incompatibility issue in version 0.2.23 by adding INVALID_UTILITY back to both utilities\n  and apps.scml.common\n\nRelease 0.2.22\n--------------\n\n- documentation update\n- unifying the INVALID_UTILITY value used by all agents/negotiators to be float(\"-inf\")\n- Added reserved_value parameter to GreedyFactoryManager that allows for control of the reserved value used\n  in all its ufuns.\n- enable mechanism plotting without history and improving plotting visibility\n- shortening negotiator names\n- printing the average number of negotiation rounds in negmas scml command\n- taking care of negotiation timeout possibility in SCML simulations\n\nRelease 0.2.21\n--------------\n\n- adding avoid_free_sales parameter to NegotiatorUtility to disable checks for zero price contracts\n- adding an optional parameter \"partner\" to _create_annotation method to create correct contract annotations\n  when response_to_negotiation_request is called\n- Avoiding unnecessary assertion in insurance company evaluate method\n- passing a copy of CFPs to on_new_cfp and on_cfp_removal methods to avoid modifications to them by agents.\n\nRelease 0.2.20\n--------------\n\n- logging name instead of ID in different debug log messages (CFP publication, rejection to negotiate)\n- bug fix that caused GreedyFactoryManagers to reject valid negotiations\n\nRelease 0.2.19\n--------------\n\n- logging CFPs\n- defaulting to buying insurance in negmas scml\n- bug resolution related to recently added ability to use LinearUtilityFunction created by a dict with tuple\n  outcomes\n- Adding force_numeric to lead_genius_*\n\nRelease 0.2.18\n--------------\n\n- minor updates\n\n\nRelease 0.2.17\n--------------\n\n- allowing anac2019_world to receive keyword arguments to pass to chain_world\n- bug fix: enabling parameter passing to the mechanism if given implicitly in MechanismFactory()\n- receiving mechanisms explicitly in SCMLWorld and any other parameters of World implicitly\n\nRelease 0.2.16\n--------------\n\n- bug fix in GreedyFactoryManager to avoid unnecessary negotiation retrials.\n\nRelease 0.2.15\n--------------\n\n- Minor bug fix to avoid exceptions on consumers with None profile.\n- Small update to the README file.\n\n\nRelease 0.2.14\n--------------\n\n- Documentation update\n- simplifying continuous integration workflow (for development)\n\nRelease 0.2.13\n--------------\n\n- Adding new callbacks to simplify factory manager development in the SCM world: on_contract_executed,\n  on_contract_breached, on_inventory_change, on_production_success, on_cash_transfer\n- Supporting callbacks including onUfunChanged on jnegmas for SAONegotiator\n- Installing jenegmas 0.2.6 by default in negmas jengmas-setup command\n\nRelease 0.2.12\n--------------\n\n- updating run scml tutorial\n- tox setting update to avoid a break in latest pip (19.1.0)\n- handling an edge case with both partners committing breaches at the same\n  time.\n- testing reduced max-insurance setting\n- resolving a bug in contract resolution when the same agent commits\n  multiple money breaches on multiple contracts simultaneously.\n- better assertion of correct contract execution\n- resolving a bug in production that caused double counting of some\n  production outputs when multiple lines are executed generating the\n  same product type at the same step.\n- ensuring that the storage reported through awi.state or\n  simulator.storage_* are correct for the current step. That involves\n  a slight change in an undocumented feature of production. In the past\n  produced products were moved to the factory storage BEFORE the\n  beginning of production on the next step. Now it is moved AFTER the\n  END of production of the current step (the step production was\n  completed). This ensures that when the factory manager reads its\n  storage it reflects what it actually have at all times.\n- improving printing of RunningCommandInfo and ProductionReport\n- regenerating setup.py\n- revealing jobs in FactoryState\n- handling a bug that caused factories to have a single line sometimes.\n- revealing the dict jobs in FactoryState which gives the scheduled jobs\n  for each time/line\n- adding always_concede option to NaiveTitForTatNegotiator\n- updating insurance premium percents.\n- adding more tests of NaiveTitForTatNegotiator\n- removing relative_premium/premium confusion. Now evaluate_premium will\n  always return a premium as a fraction of the contract total cost not\n  as the full price of the insurance policy. For a contract of value 30,\n  a premium of 0.1 means 3 money units not 0.1 money units.\n- adding --config option to tournament and scml commands of negmas CLI\n  to allow users to set default parameters in a file or using\n  environment variables\n- unifying the meaning of negative numbers for max_insurance_premium to\n  mean never buying insuance in the scheduler, manager, and app. Now you\n  have to set max_insurance_premium to inf to make the system\n- enforcing argument types in negmas CLI\n- Adding DEFAULT_NEGOTIATOR constant to apps.scml.common to control the\n  default negotiator type used by built-agents\n- making utility_function a property instead of a data member of\n  negotiator\n- adding on_ufun_changed() callback to Negotiator instead of relying on\n  on_nofitication() [relying on on_notification still works].\n- deprecating passing dynamic_ufun to constructors of all negotiators\n- removing special treatment of AspirationNegotiator in miners\n- modifications to the implementation of TitForTatNegotiator to make it\n  more sane.\n- deprecating changing the utility function directly (using\n  negotiator.ufun = x) AFTER the negotiation starts. It is\n  still possible to change it up to the call to join()\n- adding negmas.apps.scml.DEFAULT_NEGOTIATOR to control the default negotiator used\n- improved parameter settings (for internal parameters not published in the SCML document)\n- speeding up ufun dumping\n- formatting update\n- adding ufun logging as follows:\n\n  * World and SCMLWorld has now log_ufuns_file which if not None gives a file to log the funs into.\n  * negmas tournament and scml commands receive a --log-ufuns or --no-log-ufuns to control whether\n    or not to log the ufuns into the tournament/world stats directory under the name ufuns.csv\n\n- adding a helper add_records to add records into existing csv files.\n\n\nRelease 0.2.11\n--------------\n- minor bug fix\n\nRelease 0.2.10\n--------------\n\n- adding more control to negmas tournaments:\n\n   1. adding --factories argument to control how many factories (at least) should exist on each production\n      level\n   2. adding --agents argument to control how many agents per competitor to instantiate. For the anac2019std\n      ttype, this will be forced to 1\n\n- adding sabotage track and anac2019_sabotage to run it\n- updating test assertions for negotiators.\n- tutorial update\n- completed NaiveTitForTatNegotiator implementation\n\n\nRelease 0.2.9\n-------------\n\n- resolving a bug in AspirationNegotiator that caused an exception for ufuns with assume_normalized\n- resolving a bug in ASOMechanism that caused agreements only on boundary offers.\n- using jnegmas-0.2.4 instead of jnegmas-0.2.3 in negmas jnegmas-setup command\n\n\nRelease 0.2.8\n-------------\n\n- adding commands to FactoryState.\n- Allowing JNegMAS to use GreedyFactoryManager. To do that, the Java factory manager must inherit from\n  GreedyFactoryManager and its class name must end with either GreedyFactoryManager or GFM\n\n\nRelease 0.2.7\n-------------\n\n- improving naming of java factory managers in log files.\n- guaranteeing serial tournaments when java factory managers are involved (to be lifter later).\n- adding links to the YouTube playlist in README\n- adhering to Black style\n\n\nRelease 0.2.6\n-------------\n\n- documentation update\n- setting default world runs to 100 steps\n- rounding catalog prices and historical costs to money resolution\n- better defaults for negmas tournaments\n- adding warnings when running too many simulations.\n- added version command to negmas\n- corrected the way min_factories_per_level is handled during tournament config creation.\n- added --factories to negmas tournament command to control the minimum number of factories per level.\n- improving naming of managers and factories for debugging purposes\n- forcing reveal-names when giving debug option to any negmas command\n- adding short_type_name to all Entity objects for convenient printing\n\nRelease 0.2.5\n-------------\n\n- improvements to ufun representation to speedup computation\n- making default factory managers slightly less risky in their behavior in long simulations and more risky\n  in short ones\n- adding jnegmas-setup and genius-setup commands to download and install jenegmas and genius bridge\n- removing the logger mixin and replaced it with parameters to World and SCMLWorld\n- added compact parameter to SCMLWorld, tournament, and world generators to reduce the memory footprint\n- added --compact/--debug to the command line tools to avoid memory and log explosion setting the default to\n  --compact\n- improving implementation of consumer ufun for cases with negative schedule\n- changing the return type of SCMLAWI.state from Factory to FactoryState to avoid modifying the original\n  factory. For efficiency reasons, the profiles list is passed as it is and it is possible to modify it\n  but that is forbidden by the rules of the game.\n- Speeding up and correcting financial report reception.\n- Making bankruptcy reporting system-wide\n- avoiding execution of contracts with negative or no quantity and logging ones with zero unit price.\n- documentation update\n- bug fix to resolve an issue with ufun calculation for consumers in case of over consumption.\n- make the default behavior of negmas command to reveal agent types in their names\n- preventing agents from publishing CFPs with the ID of other agents\n- documentation update\n- improved Java support\n- added option default_dump_extension to ~/negmas/config.json to enable changing the format of dumps from json to yaml.\n  Currently json is the default. This included adding a helper function helpers.dump() to dump in the selected format\n  (or overriding it by providing a file extension).\n- completing compatibility with SCML description (minor change to the consumer profile)\n- added two new options to negmas tournament command: anac2019std and anac2019collusion to simulate these two tracks of\n  the ANAC 2019 SCML. Sabotage version will be added later.\n- added two new functions in apps.scml.utils anac2019_std, anac2019_collusion to simulate these two tracks of the ANAC\n  2019 SCML. Sabotage version will be added later.\n- added assign_managers() method to SCMLWorld to allow post-init assignment of managers to factories.\n- updating simulator documentation\n\nRelease 0.2.2\n-------------\n\n* modifications to achieve compatibility with JNegMAS 0.2.0\n* removing the unnecessary ufun property in Negotiator\n\nRelease 0.2.0\n-------------\n\n* First ANAC 2019 SCML release\n* compatible with JNegMAS 0.2.0\n\nRelease 0.1.45\n--------------\n\n* implemented money and inventory hiding\n* added sugar methods to SCMLAWI that run execute for different commands: schedule_production, stop_production, schedule_job, hide_inventory, hide_money\n* added a json file ~/negmas/config.json to store all global configs\n* reading jar locations for both jnegmas and genius-bridge from config file\n* completed bankruptcy and liquidation implementation.\n* removed the unnecessary _world parameter from Entity\n* Added parameters to the SCML world to control compensation parameters and default price for products with no catalog prices.\n* Added contract nullification everywhere.\n* updated documentation to show all inherited members of all classes and to show all non-private members\n* Removing the bulletin-board from the public members of the AWI\n\nRelease 0.1.42\n--------------\n\n* documentation improvement\n* basic bankruptcy implementation\n* bug fixes\n\nRelease 0.1.40\n--------------\n\n* documentation update\n* implementing bank and insurance company disable/enable switches\n* implementing financial reports\n* implementing checks for bankruptcy in all built-in agents in SCML\n* implementing round timeout in SAOMechanism\n\nRelease 0.1.33\n--------------\n\n* Moving to Travis CI for continuous integration, ReadTheDocs for documentation and Codacy for code quality\n\nRelease 0.1.32\n--------------\n\n* Adding partial support to factory manager development using Java\n* Adding annotation control to SCML world simulation disallowing factory managers from sending arbitrary information to\n  co-specifics\n* Removing some unnecessary dependencies\n* Moving development to poetry. Now we do not keep a setup.py file and rely on poetry install\n\nRelease 0.1.3\n-------------\n\n* removing some unnecessary dependencies that may cause compilation issues\n\nRelease 0.1.2\n-------------\n\n* First public release\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "NEGotiations Managed by Agent Simulations",
    "version": "0.10.23",
    "project_urls": {
        "Homepage": "https://github.com/yasserfarouk/negmas"
    },
    "split_keywords": [
        "negotiation",
        " mas",
        " multi-agent",
        " simulation",
        " ai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b6d42b557b51bbb8a5ba2a6daba4ae6e2b7fac5be0efad911a9a8f03186bc6fb",
                "md5": "46c5603cb787471cfaf78f935d866135",
                "sha256": "12c9eec5e1cbef84886f26ab88bff08796e242af989f03def4506a0630066648"
            },
            "downloads": -1,
            "filename": "negmas-0.10.23-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "46c5603cb787471cfaf78f935d866135",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.10",
            "size": 600908,
            "upload_time": "2024-04-07T03:49:09",
            "upload_time_iso_8601": "2024-04-07T03:49:09.070543Z",
            "url": "https://files.pythonhosted.org/packages/b6/d4/2b557b51bbb8a5ba2a6daba4ae6e2b7fac5be0efad911a9a8f03186bc6fb/negmas-0.10.23-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "76244108f4281fbabc12c0c9316a19ee53dc95c4c2f38ab7533cc543b7580b9f",
                "md5": "adae0efe216c4c748f799ff3d55d00e9",
                "sha256": "b30e409e33d651932898e585ea09d411bc65136fef290fc00820d82de7d1747e"
            },
            "downloads": -1,
            "filename": "negmas-0.10.23.tar.gz",
            "has_sig": false,
            "md5_digest": "adae0efe216c4c748f799ff3d55d00e9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 553083,
            "upload_time": "2024-04-07T03:49:12",
            "upload_time_iso_8601": "2024-04-07T03:49:12.709286Z",
            "url": "https://files.pythonhosted.org/packages/76/24/4108f4281fbabc12c0c9316a19ee53dc95c4c2f38ab7533cc543b7580b9f/negmas-0.10.23.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-07 03:49:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yasserfarouk",
    "github_project": "negmas",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "typer",
            "specs": []
        },
        {
            "name": "Click",
            "specs": [
                [
                    ">=",
                    "6.0"
                ]
            ]
        },
        {
            "name": "psutil",
            "specs": []
        },
        {
            "name": "PyYAML",
            "specs": []
        },
        {
            "name": "click-config-file",
            "specs": [
                [
                    ">=",
                    "0.4.5"
                ]
            ]
        },
        {
            "name": "colorlog",
            "specs": []
        },
        {
            "name": "inflect",
            "specs": []
        },
        {
            "name": "matplotlib",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.16"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    ">=",
                    "0.24.1"
                ]
            ]
        },
        {
            "name": "progressbar2",
            "specs": [
                [
                    ">=",
                    "3.39"
                ]
            ]
        },
        {
            "name": "py4j",
            "specs": []
        },
        {
            "name": "pytest-runner",
            "specs": [
                [
                    ">=",
                    "4.4"
                ]
            ]
        },
        {
            "name": "pytest-timeout",
            "specs": [
                [
                    ">=",
                    "1.3"
                ]
            ]
        },
        {
            "name": "pytest-check",
            "specs": []
        },
        {
            "name": "scipy",
            "specs": [
                [
                    ">=",
                    "1.2"
                ]
            ]
        },
        {
            "name": "stringcase",
            "specs": []
        },
        {
            "name": "tabulate",
            "specs": []
        },
        {
            "name": "typing",
            "specs": []
        },
        {
            "name": "typing_extensions",
            "specs": [
                [
                    ">=",
                    "3.7"
                ]
            ]
        },
        {
            "name": "dill",
            "specs": []
        },
        {
            "name": "seaborn",
            "specs": []
        },
        {
            "name": "scikit-learn",
            "specs": []
        },
        {
            "name": "networkx",
            "specs": []
        },
        {
            "name": "gif",
            "specs": []
        },
        {
            "name": "rich",
            "specs": []
        },
        {
            "name": "pygments",
            "specs": [
                [
                    ">=",
                    "2.7.4"
                ]
            ]
        },
        {
            "name": "numba",
            "specs": []
        },
        {
            "name": "pillow",
            "specs": [
                [
                    ">=",
                    "10.0.1"
                ]
            ]
        }
    ],
    "tox": true,
    "lcname": "negmas"
}
        
Elapsed time: 0.36540s