Cizz22 3 months ago
parent b4d02daf3e
commit 1252a153cc

@ -57,6 +57,7 @@ class OptimizationResult(OverhaulBase):
possible_plant_eaf:float
eaf_gap: float
eaf_improvement_text:str
recommended_reduced_outage:float
warning_message:Optional[str]
asset_contributions: List[dict]
optimization_success: bool = False

@ -289,6 +289,7 @@ async def identify_worst_eaf_contributors(
possible_eaf_plant = min(possible_eaf_plant, max_eaf_possible)
selected_eq.sort(key=lambda x: x.birbaum, reverse=True)
required_cut_hours = 0
# --- 2. Optimization feasible but cannot reach target (underperformance case) ---
if possible_eaf_plant < target_eaf:
@ -332,7 +333,8 @@ async def identify_worst_eaf_contributors(
possible_plant_eaf=possible_eaf_plant,
eaf_gap=eaf_gap,
warning_message=warning_message, # numeric
eaf_improvement_text=improvement_text, # human-readable text
eaf_improvement_text=improvement_text,
recommended_reduced_outage=required_cut_hours,
asset_contributions=[
{
"node": asset.node,

Loading…
Cancel
Save