IndependentNegotiationsAgent

class scml.scml2020.IndependentNegotiationsAgent(*args, **kwargs)[source]

Bases: scml.IndependentNegotiationsManager, scml.FixedTradePredictionStrategy, scml.ReactiveTradingStrategy, scml.SCML2020Agent

Implements the base class for agents that negotiate independently with different partners.

These agents do not take production capacity, availability of materials or any other aspects of the simulation into account. They are to serve only as baselines.

Remarks:

  • IndependentNegotiationsAgent agents assume that each production process has one input type with the same

    index as itself and one output type with one added to the index (i.e. process $i$ takes product $i$ as input and creates product $i+1$ as output.

  • It does not assume that all lines have the same production cost (it uses the average cost though).

  • It does not assume that the agent has a single production process.

Methods Summary

acceptable_unit_price(step, sell)

Returns the maximum/minimum acceptable unit price for buying/selling at the given time-step

target_quantity(step, sell)

Returns the target quantity to sell/buy at a given time-step

Methods Documentation

acceptable_unit_price(step, sell)[source]

Returns the maximum/minimum acceptable unit price for buying/selling at the given time-step

Parameters
  • step (int) – Simulation step

  • sell (bool) – Sell or buy

Return type

int

target_quantity(step, sell)[source]

Returns the target quantity to sell/buy at a given time-step

Parameters
  • step (int) – Simulation step

  • sell (bool) – Sell or buy

Return type

int