|
|
|
@ -495,14 +495,6 @@ def main():
|
|
|
|
auxiliary_history.append(
|
|
|
|
auxiliary_history.append(
|
|
|
|
(production_bruto - production_netto) / production_bruto * 100 if production_bruto != 0 else 0)
|
|
|
|
(production_bruto - production_netto) / production_bruto * 100 if production_bruto != 0 else 0)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# last_3_sfc = sfc_history[-3:]
|
|
|
|
|
|
|
|
# avg_last_3_sfc = sum(last_3_sfc) / len(last_3_sfc) if len(last_3_sfc) > 0 else 0
|
|
|
|
|
|
|
|
# sfc = avg_last_3_sfc
|
|
|
|
|
|
|
|
# sfc_history.append(avg_last_3_sfc)
|
|
|
|
|
|
|
|
# last_3_auxiliary = auxiliary_history[-3:]
|
|
|
|
|
|
|
|
# avg_last_3_auxiliary = sum(last_3_auxiliary) / len(last_3_auxiliary) if len(last_3_auxiliary) > 0 else 0
|
|
|
|
|
|
|
|
# auxiliary = avg_last_3_auxiliary
|
|
|
|
|
|
|
|
# auxiliary_history.append(avg_last_3_auxiliary)
|
|
|
|
|
|
|
|
sfc_rate = npf.rate(len(sfc_history) - 1, 0, sfc_history[-1], -sfc_history[1]) if len(
|
|
|
|
sfc_rate = npf.rate(len(sfc_history) - 1, 0, sfc_history[-1], -sfc_history[1]) if len(
|
|
|
|
sfc_history) > 2 else 0
|
|
|
|
sfc_history) > 2 else 0
|
|
|
|
sfc = sfc_history[-1] / (1 + sfc_rate) ** seq_non_actual
|
|
|
|
sfc = sfc_history[-1] / (1 + sfc_rate) ** seq_non_actual
|
|
|
|
@ -513,7 +505,6 @@ def main():
|
|
|
|
seq_non_actual += 1
|
|
|
|
seq_non_actual += 1
|
|
|
|
|
|
|
|
|
|
|
|
production_netto = net_capacity_factor * 8760 * daya_mampu_netto / 100
|
|
|
|
production_netto = net_capacity_factor * 8760 * daya_mampu_netto / 100
|
|
|
|
print(production_netto)
|
|
|
|
|
|
|
|
production_bruto = production_netto / (100 - (auxiliary + susut_trafo)) * 100
|
|
|
|
production_bruto = production_netto / (100 - (auxiliary + susut_trafo)) * 100
|
|
|
|
energy_sales = production_netto
|
|
|
|
energy_sales = production_netto
|
|
|
|
fuel_consumption = production_bruto * sfc
|
|
|
|
fuel_consumption = production_bruto * sfc
|
|
|
|
|