|
|
|
@ -1220,6 +1220,7 @@ class OptimumCostModel:
|
|
|
|
location_tag = equipment.location_tag
|
|
|
|
location_tag = equipment.location_tag
|
|
|
|
cost_per_failure = equipment.material_cost
|
|
|
|
cost_per_failure = equipment.material_cost
|
|
|
|
overhaul_cost = equipment.overhaul_cost
|
|
|
|
overhaul_cost = equipment.overhaul_cost
|
|
|
|
|
|
|
|
service_cost = equipment.service_cost
|
|
|
|
|
|
|
|
|
|
|
|
# Get pre-fetched reliability data
|
|
|
|
# Get pre-fetched reliability data
|
|
|
|
failure_rate = all_reliabilities.get(location_tag, {})
|
|
|
|
failure_rate = all_reliabilities.get(location_tag, {})
|
|
|
|
@ -1227,7 +1228,7 @@ class OptimumCostModel:
|
|
|
|
|
|
|
|
|
|
|
|
# Calculate costs using vectorized operations
|
|
|
|
# Calculate costs using vectorized operations
|
|
|
|
predicted_costs = self._calculate_costs_vectorized(
|
|
|
|
predicted_costs = self._calculate_costs_vectorized(
|
|
|
|
preventive_cost=preventive_cost_per_equipment,
|
|
|
|
preventive_cost=overhaul_cost + service_cost,
|
|
|
|
failure_replacement_cost=cost_per_failure,
|
|
|
|
failure_replacement_cost=cost_per_failure,
|
|
|
|
failure_rate=failure_rate
|
|
|
|
failure_rate=failure_rate
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|