|
|
|
@ -371,8 +371,8 @@ class OptimumCostModelWithSpareparts:
|
|
|
|
REFERENCE_CAPACITY = 630 # or 550
|
|
|
|
REFERENCE_CAPACITY = 630 # or 550
|
|
|
|
COST_PER_MWH = 1_000_000 # rupiah
|
|
|
|
COST_PER_MWH = 1_000_000 # rupiah
|
|
|
|
|
|
|
|
|
|
|
|
plant_capacity_loss_money = [metrics['derated_mwh'] * COST_PER_MWH for metrics in plant_monthly_metrics.values()]
|
|
|
|
# plant_capacity_loss_money = [metrics['derated_mwh'] * COST_PER_MWH for metrics in plant_monthly_metrics.values()]
|
|
|
|
cumulative_loss_money = np.cumsum(plant_capacity_loss_money)
|
|
|
|
# cumulative_loss_money = np.cumsum(plant_capacity_loss_money)
|
|
|
|
|
|
|
|
|
|
|
|
total_simulation_period = int((importance_results["plant_result"]['total_downtime'] + importance_results["plant_result"]['total_uptime'])/720)
|
|
|
|
total_simulation_period = int((importance_results["plant_result"]['total_downtime'] + importance_results["plant_result"]['total_uptime'])/720)
|
|
|
|
|
|
|
|
|
|
|
|
@ -701,12 +701,14 @@ async def run_simulation_with_spareparts(*, db_session, calculation, token: str,
|
|
|
|
sparepart_manager=sparepart_manager
|
|
|
|
sparepart_manager=sparepart_manager
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
simulation_ids = ["74155082-680a-4e16-b5a9-b0f31a451dd8",
|
|
|
|
simulation_ids = [
|
|
|
|
"986e5858-40aa-4663-8721-7a115ad62d6c,"
|
|
|
|
"146fe891-cf36-44c0-a18a-7e0b24c7b574",
|
|
|
|
"9dd76ceb-d00a-4b32-9ef3-4c3f89fcde6e", "6536248a-d1b1-449f-85f9-a1366db020a5",
|
|
|
|
"4f650a1d-7928-4f3b-a026-aeac1de73c41",
|
|
|
|
"b16b2a31-5878-459a-a59c-4101764d9a7d",
|
|
|
|
"fdeba8cd-4e97-4f61-a7f3-a12d20d8f792",
|
|
|
|
"0c13da2a-fd3b-4f71-ac58-1fb40de872e5",
|
|
|
|
"6d2f78b2-fac3-4a6d-aa22-cfe064277ca0",
|
|
|
|
"6f060ea6-d74e-4e80-9a40-814f29ef42be",
|
|
|
|
"d22bcbe6-44ff-4f3a-9b78-02c0e7bacfc5",
|
|
|
|
|
|
|
|
"abdddd5b-cf05-4981-ac96-3b45e6e7d174",
|
|
|
|
|
|
|
|
"a0c43140-f3ec-4829-9687-9206c645d660",
|
|
|
|
"d84d9cb7-8dfe-440a-9427-ea5d15c769c7",
|
|
|
|
"d84d9cb7-8dfe-440a-9427-ea5d15c769c7",
|
|
|
|
"a51c97bc-fc14-4c9c-aba5-f6d427815cec",
|
|
|
|
"a51c97bc-fc14-4c9c-aba5-f6d427815cec",
|
|
|
|
"d279535e-a852-4161-aaf5-a862b1760055"
|
|
|
|
"d279535e-a852-4161-aaf5-a862b1760055"
|
|
|
|
|