|
|
|
|
@ -154,7 +154,7 @@ def project_eaf_improvement(asset: AssetWeight, improvement_factor: float = 0.3)
|
|
|
|
|
projected_eaf = 100 - improved_downtime_pct
|
|
|
|
|
return min(projected_eaf, 99.9) # Cap at 99.9%
|
|
|
|
|
|
|
|
|
|
async def identify_worst_eaf_contributors(*, simulation_result, target_eaf: float, db_session: DbSession, oh_session_id: str, collector_db: CollectorDbSession):
|
|
|
|
|
async def identify_worst_eaf_contributors(*, simulation_result, target_eaf: float, db_session: DbSession, oh_session_id: str, collector_db: CollectorDbSession, simulation_id: str):
|
|
|
|
|
"""
|
|
|
|
|
Identify equipment that contributes most to plant EAF reduction
|
|
|
|
|
|
|
|
|
|
@ -205,6 +205,7 @@ async def identify_worst_eaf_contributors(*, simulation_result, target_eaf: floa
|
|
|
|
|
eaf_gap=eaf_gap,
|
|
|
|
|
asset_contributions=selected_asset,
|
|
|
|
|
optimization_success=optimization_success
|
|
|
|
|
simulation_id=simulation_id
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# def optimize_maintenance_priority(*, simulation_result, target_eaf: float):
|
|
|
|
|
|