Skip to content

Commit 01a9515

Browse files
model add on profit as fixed capacity payment (WIP - TODO to unit test)
1 parent d3012f8 commit 01a9515

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/geophires_x/EconomicsAddOns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def Calculate(self, model: Model) -> None:
307307

308308
if is_sam_em:
309309
model.economics.CCap.value = self.AdjustedProjectCAPEX.value
310-
model.economics.Coam.value = self.AdjustedProjectOPEX.value - np.sum(self.AddOnProfitGainedPerYear.value)
310+
model.economics.Coam.value = self.AdjustedProjectOPEX.value
311311
# FIXME WIP
312312

313313
AddOnCapCostPerYear = self.AddOnCAPEXTotal.value / model.surfaceplant.construction_years.value

src/geophires_x/EconomicsSam.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,12 @@ def _get_single_owner_parameters(model: Model) -> dict[str, Any]:
415415

416416
ret['ibi_oth_amount'] = (econ.OtherIncentives.quantity() + econ.TotalGrant.quantity()).to('USD').magnitude
417417

418+
if model.economics.DoAddOnCalculations.value:
419+
add_on_profit_per_year = np.sum(model.addeconomics.AddOnProfitGainedPerYear.quantity().to('USD/yr').magnitude)
420+
add_on_profit_series = [add_on_profit_per_year]
421+
ret['cp_capacity_payment_amount'] = add_on_profit_series
422+
ret['cp_capacity_payment_type'] = 1
423+
418424
return ret
419425

420426

0 commit comments

Comments
 (0)