Skip to main content

PrefixLayoutBillScenario

Agents scenarios · Implementation: mlsysim/engine/scenario_definitions/agents.py.

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

A trajectory of root, trunk, and leaf requests, billed volatile-first and zoned.

Notes

Equation: result = PrefixLayoutBillModel.solve(…) with the declared turns, root_tokens, trunk_tokens inputs.

Assumptions: The inputs instantiate the assumptions documented by mlsysim.solvers.PrefixLayoutBillModel.solve; accessing result evaluates that solver again.

Excludes: Any extra mechanism beyond PrefixLayoutBillModel; this record supplies configuration and does not collect performance measurements.

References

Derivation: This configuration forwards its stored inputs to mlsysim.solvers.PrefixLayoutBillModel.solve. The solver contract records the equations and their provenance.

Examples

The named scenario supplies illustrative inputs; the output is calculated.

>>> from mlsysim import Scenarios
>>> case = Scenarios.RepairPrefixLayoutBill
>>> round(float(case.result.request_tokens), 3)
47000.0

Attributes

Name Description
cached_fraction
input_price
leaf_tokens
result Modeled result from mlsysim.solvers.PrefixLayoutBillModel.solve using this
root_tokens
trunk_rewrites
trunk_tokens
turns

turns

Type: int.

Declared default: required.

root_tokens

Type: int.

Declared default: required.

trunk_tokens

Type: int.

Declared default: required.

leaf_tokens

Type: int.

Declared default: required.

trunk_rewrites

Type: int.

Declared default: required.

input_price

Type: Quantity.

Declared default: required.

cached_fraction

Type: float.

Declared default: required.

result

engine.scenario_types.PrefixLayoutBillScenario.result

Modeled result from mlsysim.solvers.PrefixLayoutBillModel.solve using this scenario’s declared inputs; see that method for units, limits, and feasibility.

Equation: Delegates the declared fields to mlsysim.solvers.PrefixLayoutBillModel.solve; returned quantities and feasibility follow that contract.

Back to top