scml.std.context

Classes

BaseStdContext

A context that generates std worlds with agents of a given types with predetermined structure and settings

GeneralStdContext

A context that generates std worlds with agents of a given types with predetermined structure and settings

FixedPartnerNumbersStdContext

Generates a world limiting the range of the agent level, production capacity

LimitedPartnerNumbersStdContext

Generates a oneshot world limiting the range of the agent level, production capacity

ANACStdContext

Generates a oneshot world with no constraints except compatibility with a specific ANAC competition year.

MiddleManStdContext

A world context that can generate any world compatible with the observation manager

StrongMiddleManStdContext

A supplier with almost many consumers relative to competitors

BalancedMiddleManStdContext

A supplier with almost same number of consumers as competitors

WeakMiddleManStdContext

A supplier with few consumers relative to competitors

SupplierStdContext

A world context that can generate any world compatible with the observation manager

StrongSupplierStdContext

A supplier with almost many consumers relative to competitors

BalancedSupplierStdContext

A supplier with almost same number of consumers as competitors

WeakSupplierStdContext

A supplier with few consumers relative to competitors

ConsumerStdContext

A world context that can generate any world compatible with the observation manager

StrongConsumerStdContext

A consumer with almost many suppliers relative to competitors

BalancedConsumerStdContext

A consumer with almost same number of suppliers as competitors

WeakConsumerStdContext

A consumer with few suppliers relative to competitors

StdContext

A basic context fixing stationary world config parameters

RepeatingStdContext

Encapsulates one or more configs and switches between them when asked to generate or make something.

Module Contents

class scml.std.context.BaseStdContext[source]

Bases: scml.oneshot.context.BaseContext

A context that generates std worlds with agents of a given types with predetermined structure and settings

world_type: type[scml.oneshot.world.SCMLBaseWorld][source]
non_competitors: tuple[str | type[scml.oneshot.agent.OneShotAgent], Ellipsis][source]
class scml.std.context.GeneralStdContext[source]

Bases: scml.oneshot.context.GeneralContext

A context that generates std worlds with agents of a given types with predetermined structure and settings

world_type: type[scml.oneshot.world.SCMLBaseWorld][source]
non_competitors: tuple[str | type[scml.oneshot.agent.OneShotAgent], Ellipsis][source]
perishable: bool = False[source]
horizon: int[source]
n_processes: tuple[int, int] | int[source]
disposal_cost: tuple[float, float] | float[source]
disposal_cost_dev: tuple[float, float] | float[source]
storage_cost: tuple[float, float] | float[source]
storage_cost_dev: tuple[float, float] | float[source]
price_range_fraction: float | tuple[float, float][source]
price_multiplier: numpy.ndarray | tuple[float, float] | float[source]
wide_price_range: bool[source]
one_time_per_negotiation: bool[source]
quantity_multiplier: int[source]
max_productivity: tuple[float, float] | float[source]
max_supply: tuple[float, float] | float[source]
exogenous_supply_predictability: tuple[float, float] | float[source]
exogenous_sales_predictability: tuple[float, float] | float[source]
cap_exogenous_quantities: bool[source]
class scml.std.context.FixedPartnerNumbersStdContext[source]

Bases: scml.oneshot.context.FixedPartnerNumbersContext

Generates a world limiting the range of the agent level, production capacity and the number of suppliers, consumers, and optionally same-level competitors.

world_type: type[scml.oneshot.world.SCMLBaseWorld][source]
non_competitors: tuple[str | type[scml.oneshot.agent.OneShotAgent], Ellipsis][source]
class scml.std.context.LimitedPartnerNumbersStdContext[source]

Bases: scml.oneshot.context.LimitedPartnerNumbersOneShotContext

Generates a oneshot world limiting the range of the agent level, production capacity and the number of suppliers, consumers, and optionally same-level competitors.

year: int = 2024[source]
__attrs_post_init__()[source]
class scml.std.context.ANACStdContext[source]

Bases: GeneralStdContext

Generates a oneshot world with no constraints except compatibility with a specific ANAC competition year.

year: int = 2024[source]
__attrs_post_init__()[source]
class scml.std.context.MiddleManStdContext(*args, **kwargs)[source]

Bases: scml.oneshot.context.LimitedPartnerNumbersOneShotContext

A world context that can generate any world compatible with the observation manager

class scml.std.context.StrongMiddleManStdContext(*args, **kwargs)[source]

Bases: MiddleManStdContext

A supplier with almost many consumers relative to competitors

class scml.std.context.BalancedMiddleManStdContext(*args, **kwargs)[source]

Bases: MiddleManStdContext

A supplier with almost same number of consumers as competitors

class scml.std.context.WeakMiddleManStdContext(*args, **kwargs)[source]

Bases: MiddleManStdContext

A supplier with few consumers relative to competitors

class scml.std.context.SupplierStdContext(*args, **kwargs)[source]

Bases: scml.oneshot.context.SupplierContext

A world context that can generate any world compatible with the observation manager

world_type: type[scml.oneshot.world.SCMLBaseWorld][source]
non_competitors: tuple[str | type[scml.oneshot.agent.OneShotAgent], Ellipsis][source]
class scml.std.context.StrongSupplierStdContext(*args, **kwargs)[source]

Bases: SupplierStdContext

A supplier with almost many consumers relative to competitors

class scml.std.context.BalancedSupplierStdContext(*args, **kwargs)[source]

Bases: SupplierStdContext

A supplier with almost same number of consumers as competitors

class scml.std.context.WeakSupplierStdContext(*args, **kwargs)[source]

Bases: SupplierStdContext

A supplier with few consumers relative to competitors

class scml.std.context.ConsumerStdContext(*args, **kwargs)[source]

Bases: scml.oneshot.context.ConsumerContext

A world context that can generate any world compatible with the observation manager

world_type: type[scml.oneshot.world.SCMLBaseWorld][source]
non_competitors: tuple[str | type[scml.oneshot.agent.OneShotAgent], Ellipsis][source]
class scml.std.context.StrongConsumerStdContext(*args, **kwargs)[source]

Bases: ConsumerStdContext

A consumer with almost many suppliers relative to competitors

class scml.std.context.BalancedConsumerStdContext(*args, **kwargs)[source]

Bases: ConsumerStdContext

A consumer with almost same number of suppliers as competitors

class scml.std.context.WeakConsumerStdContext(*args, **kwargs)[source]

Bases: ConsumerStdContext

A consumer with few suppliers relative to competitors

class scml.std.context.StdContext[source]

Bases: GeneralStdContext

A basic context fixing stationary world config parameters

class scml.std.context.RepeatingStdContext[source]

Bases: scml.oneshot.context.RepeatingContext

Encapsulates one or more configs and switches between them when asked to generate or make something.

world_type: type[scml.oneshot.world.SCMLBaseWorld][source]
non_competitors: tuple[str | type[scml.oneshot.agent.OneShotAgent], Ellipsis][source]