|
|
|
@ -17,7 +17,7 @@ from src.overhaul_scope.service import get as get_scope
|
|
|
|
from .schema import CalculationResultsRead
|
|
|
|
from .schema import CalculationResultsRead
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_overhaul_cost_by_time_chart(overhaul_cost: float, days: int,numEquipments:int ,decay_base: float = 0.3) -> np.ndarray:
|
|
|
|
def get_overhaul_cost_by_time_chart(overhaul_cost: float, days: int,numEquipments:int ,decay_base: float = 1.01) -> np.ndarray:
|
|
|
|
if overhaul_cost < 0:
|
|
|
|
if overhaul_cost < 0:
|
|
|
|
raise ValueError("Overhaul cost cannot be negative")
|
|
|
|
raise ValueError("Overhaul cost cannot be negative")
|
|
|
|
if days <= 0:
|
|
|
|
if days <= 0:
|
|
|
|
|