Skip to main content

DedicatedBreakEvenScenario

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.

Renting a matched-capability API against owning capacity at a fixed hourly cost.

Notes

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

Assumptions: Owned and API service have matched capability, fixed tariffs, and declared throughput/load.

Excludes: Quality differences, capacity ramps, capital discounting, and outage reserve.

References

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

Examples

>>> from mlsysim import Scenarios
>>> scenario = Scenarios.DedicatedCapacityBreakEven
>>> value = scenario.result
>>> type(value).__name__
'DedicatedBreakEvenResult'

Attributes

Name Description
cached_fraction
cached_price
fixed_per_hour
input_per_output
input_price
load
output_price
reference_rate
result Return the typed accounting result from DedicatedBreakEvenModel using this
variable_price

Methods

Name Description
hourly_costs API and owned-capacity USD per hour at the supplied load, using

hourly_costs

engine.scenario_types.DedicatedBreakEvenScenario.hourly_costs(load)

API and owned-capacity USD per hour at the supplied load, using DedicatedBreakEvenModel.hourly_costs.

Equation: DedicatedBreakEvenModel.hourly_costs(load, reference_rate, r.api_price, float(fixed_per_hour.to('USD / hour').magnitude), _p(variable_price)).

input_per_output

Type: float.

Declared default: required.

cached_fraction

Type: float.

Declared default: required.

input_price

Type: Quantity.

Declared default: required.

cached_price

Type: Quantity.

Declared default: required.

output_price

Type: Quantity.

Declared default: required.

fixed_per_hour

Type: Quantity.

Declared default: required.

variable_price

Type: Quantity.

Declared default: required.

reference_rate

Type: Quantity.

Declared default: required.

load

Type: float.

Declared default: required.

result

engine.scenario_types.DedicatedBreakEvenScenario.result

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

Equation: DedicatedBreakEvenModel().solve(input_per_output, cached_fraction, _p(input_price), _p(cached_price), _p(output_price), float(fixed_per_hour.to('USD / hour').magnitude), _p(variable_price), reference_rate, load).

Back to top