SCML2020-OneShot

This module describes the Supply Chain Management League Platform as run in 2021 in the one-shot track

scml.oneshot Package

Functions

builtin_agent_types([as_str])

Returns all built-in agents.

Classes

OneShotState(exogenous_input_quantity, …)

State of a one-shot agent

OneShotExogenousContract(quantity, …)

Exogenous contract information

OneShotProfile(cost, input_product, n_lines, …)

Defines all private information of a factory

SCML2020OneShotWorld(catalog_prices, …[, …])

Implements the SCML-OneShot variant of the SCM world.

OneShotUFun(ex_pin, ex_qin, ex_pout, …[, …])

Calculates the utility function of a list of contracts or offers.

UFunLimit(utility, input_quantity, …)

Information about one utility limit (either highest or lowest).

OneShotAgent([owner, ufun, name])

Base class for all agents in the One-Shot game.

OneShotSyncAgent(*args, **kwargs)

An agent that automatically accumulate offers from opponents and allows you to control all negotiations centrally in the counter_all method.

OneShotSingleAgreementAgent(*args[, strict])

A synchronized agent that tries to get no more than one agreement.

OneShotIndNegotiatorsAgent(*args[, …])

A one-shot agent that deligates all of its decisions to a set of independent negotiators (one per partner per day).

EndingNegotiator([assume_normalized, ufun, …])

RandomOneShotAgent([owner, ufun, name])

SyncRandomOneShotAgent(*args, **kwargs)

SingleAgreementRandomAgent(*args[, p_accept])

A controller that agrees randomly to one offer

SingleAgreementAspirationAgent(*args, **kwargs)

Uses a time-based strategy to accept a single agreement from the set it is considering.

GreedyOneShotAgent(*args[, …])

A greedy agent based on OneShotAgent

GreedySyncAgent(*args[, threshold])

A greedy agent based on OneShotSyncAgent

GreedySingleAgreementAgent(*args, **kwargs)

A greedy agent based on OneShotSingleAgreementAgent

OneshotDoNothingAgent([owner, ufun, name])

An agent that does nothing.

OneShotAWI(world, agent)

The agent world interface for the one-shot game.

Class Inheritance Diagram

Inheritance diagram of scml.oneshot.common.OneShotState, scml.oneshot.common.OneShotExogenousContract, scml.oneshot.common.OneShotProfile, scml.oneshot.world.SCML2020OneShotWorld, scml.oneshot.ufun.OneShotUFun, scml.oneshot.ufun.UFunLimit, scml.oneshot.agent.OneShotAgent, scml.oneshot.agent.OneShotSyncAgent, scml.oneshot.agent.OneShotSingleAgreementAgent, scml.oneshot.agent.OneShotIndNegotiatorsAgent, scml.oneshot.agent.EndingNegotiator, scml.oneshot.agents.random.RandomOneShotAgent, scml.oneshot.agents.random.SyncRandomOneShotAgent, scml.oneshot.agents.random.SingleAgreementRandomAgent, scml.oneshot.agents.aspiration.SingleAgreementAspirationAgent, scml.oneshot.agents.greedy.GreedyOneShotAgent, scml.oneshot.agents.greedy.GreedySyncAgent, scml.oneshot.agents.greedy.GreedySingleAgreementAgent, scml.oneshot.agents.nothing.OneshotDoNothingAgent, scml.oneshot.awi.OneShotAWI