Skip to main content

solvers.PlacementOptimizer

solvers.PlacementOptimizer()

Finds the datacenter region that minimizes TCO plus a carbon tax.

Sweeps a list of grid regions, runs EconomicsModel for each, and ranks them by the combined objective TCO_usd + carbon_tons * carbon_tax_per_ton. This makes the carbon/cost trade-off explicit: a cheap-but-dirty grid can lose to a pricier low-carbon one once carbon is priced in.

Methods

Name Description
solve Determine the datacenter region minimizing TCO plus carbon tax.

solve

solvers.PlacementOptimizer.solve(
    fleet,
    duration_days,
    regions=None,
    carbon_tax_per_ton=100.0,
    mfu=1.0,
)

Determine the datacenter region minimizing TCO plus carbon tax.

Parameters

Name Type Description Default
fleet Fleet The cluster to place. required
duration_days float Operation duration in days. required
regions List[str] Candidate grid names looked up on Infrastructure.Grids; unknown names are skipped silently. None
carbon_tax_per_ton float Carbon price in USD per metric ton CO2e (default 100, a common mid-range social-cost-of-carbon teaching value). 100.0
mfu float Model FLOPs Utilization in [0, 1]; passed through to the energy model. 1.0

Returns

Name Type Description
PlacementOptimizerResult Best region with its TCO (USD), carbon footprint (metric tons), PUE, and the full ranked candidate list.

Notes

Equation: objective = TCO_USD + carbon_kg / 1000 * carbon_tax_per_ton. Evaluate EconomicsModel independently for each recognized candidate and return the minimum.

Assumptions: Identical fleet, duration, and MFU across candidates; at least one region must resolve. The candidate list defines the search space. Excludes: Network latency, data sovereignty, capacity availability, and provisioning constraints.

References

Derivation: Enumerate the supplied regions and minimize the sum of their modeled financial cost and carbon mass priced in USD per metric ton. This is finite candidate search, not a continuous geographic optimum.

Examples

>>> from mlsysim import Q_, Systems
>>> result = PlacementOptimizer().solve(Systems.Clusters.Research_256, duration_days=1, regions=["Quebec"])
>>> result.best_region == "Quebec"
True
Back to top