ReactiveAgent

class scml.scml2020.ReactiveAgent(*args, negotiator_type=<class 'negmas.sao.negotiators.AspirationNegotiator'>, negotiator_params=None, **kwargs)[source]

Bases: scml.StepNegotiationManager, scml.ReactiveTradingStrategy, scml.TradeDrivenProductionStrategy, scml.FixedTradePredictionStrategy, scml.SCML2020Agent

Methods Summary

acceptable_unit_price(step, sell)

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

target_quantities(steps, sell)

Implemented for speed but not really required

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_quantities(steps, sell)[source]

Implemented for speed but not really required

Return type

ndarray

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