solvers.EconomicsModel
solvers.EconomicsModel()Calculates Total Cost of Ownership (TCO) including Capex and Opex.
Combines hardware costs, energy consumption, and maintenance into a single financial model for the fleet.
Literature Source: 1. Barroso et al. (2018), “The Datacenter as a Computer: An Introduction to the Design of Warehouse-Scale Machines.” 2. Patterson (2004), “Latent Bugs in Common-Case Software.” (TCO Foundations) 3. Meta (2024), “Sustainable AI Infrastructure at Meta Scale.”
Formula contract: - energy OpEx delegates to SustainabilityModel so cost, carbon, and water share the same PUE and grid assumptions. - hardware CapEx = unit cost * accelerator count * infrastructure multiplier. - period CapEx and maintenance are prorated by duration over the amortization window.
Methods
| Name | Description |
|---|---|
| solve | Calculate the TCO for a fleet over a specified duration. |
solve
solvers.EconomicsModel.solve(
fleet,
duration_days,
kwh_price=None,
datacenter=None,
grid=None,
mfu=1.0,
amortization_years=3.0,
infrastructure_multiplier=cal.DEFAULT_INFRASTRUCTURE_MULTIPLIER,
)Calculate the TCO for a fleet over a specified duration.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| fleet | Fleet | The hardware cluster configuration. | required |
| duration_days | float | Operation duration in days. | required |
| kwh_price | float | Price of electricity per kWh. | None |
| datacenter | Datacenter | A specific datacenter profile. | None |
| grid | GridProfile | A specific grid profile. | None |
| mfu | float | Model FLOPs Utilization (0.0 to 1.0) impacting energy footprint. | 1.0 |
| amortization_years | float | Straight-line CapEx depreciation horizon (default 3 years). The period is charged total_capex / amortization_years * duration_days / 365 — a 365-day year, matching the book’s 8,760 h/yr convention. |
3.0 |
| infrastructure_multiplier | float | CapEx multiplier for networking/cooling/facility/staff (default 1.0 = hardware only; 2.0-2.5 approximates full datacenter TCO). | cal.DEFAULT_INFRASTRUCTURE_MULTIPLIER |
Returns
| Name | Type | Description |
|---|---|---|
| EconomicsResult | Financial metrics including CapEx, OpEx, and total TCO. Energy OpEx is facility-level (PUE-loaded via SustainabilityModel); maintenance accrues on FULL CapEx, not the amortized slice. |
Notes
Equation: TCO = amortized CapEx + energy OpEx + maintenance. Period CapEx = unit_cost * accelerator_count * infrastructure_multiplier * duration_days / (365 * amortization_years). Maintenance uses full CapEx; energy uses SustainabilityModel.
Assumptions: Constant prices and straight-line amortization over a positive horizon; missing accelerator price is treated as zero and must be supplied for procurement use. Excludes: Financing, resale, tax, demand charges, and measured fleet billing.
References
Derivation: Allocate purchase cost uniformly over the amortization horizon, charge maintenance on the full asset value, and add energy purchased during the period. All cost fields are in USD.
Examples
>>> from mlsysim import Q_, Systems
>>> result = EconomicsModel().solve(Systems.Clusters.Research_256, duration_days=1)
>>> result.tco_usd >= result.opex_energy_usd
True