Skip to main content

TokenPriceComparisonScenario

Economics scenarios · Implementation: mlsysim/engine/scenario_definitions/economics.py.

Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.

Two cohort configurations under one acceptance contract: does the cheaper token win?

Notes

Equation: The result property delegates to the named solver documented below; it converts declared scenario units before passing the inputs.

Assumptions: Both nested cohorts use a comparable acceptance contract and include all billed attempts.

Excludes: A causal claim that token price alone determines acceptance or cost.

References

Derivation: the scenario composes mlsysim.solvers.CohortAttemptCostModel. Their contracts supply the underlying equations; property equations show the remaining unit conversions and accounting.

Examples

>>> from mlsysim import Scenarios
>>> scenario = Scenarios.RepairCohortTokenPriceComparison
>>> value = scenario.result
>>> type(value).__name__
'TokenPriceComparisonResult'

Attributes

Name Description
alternative
baseline
result Return the typed accounting result from CohortAttemptCostModel using this scenario’s

baseline

Type: CohortAttemptCostScenario.

Declared default: required.

alternative

Type: CohortAttemptCostScenario.

Declared default: required.

result

engine.scenario_types.TokenPriceComparisonScenario.result

Return the typed accounting result from CohortAttemptCostModel using this scenario’s declared inputs; units and exclusions follow that solver contract.

Equation: CohortAttemptCostModel.compare(baseline.result, alternative.result, baseline.accepted, alternative.accepted).

Back to top