breos.economics.calculate_lcoe_from_projection#
- breos.economics.calculate_lcoe_from_projection(cost_projection, total_investment=None, discount_rate=0.0, production_column='PV_Production_kWh')[source]#
Calculate LCOE from a simulated multi-year projection.
This variant is intended for simulation outputs that already contain year-by-year PV production and replacement costs. It uses system CAPEX, operation costs, and replacement costs as the cost basis; grid import charges, fixed grid charges, and export revenue are excluded because those are tariff outcomes rather than generation costs.
- Parameters:
cost_projection (
DataFrame) – DataFrame fromcost_analysis_projection().total_investment (
Optional[float]) – System CAPEX. If omitted, usescost_projection.attrs["total_investment"]or infers it from the first cumulative/annual system-cost row.discount_rate (
float) – Discount rate used for production and annual costs.production_column (
str) – Column containing yearly production in kWh.
- Return type:
- Returns:
LCOE in €/kWh.