age_replacement_policy#

relife.policy.age_replacement_policy(baseline_model, cost_structure, one_cycle=False, **kwargs)[source]#

Creates a preventive age replacement policy.

Parameters:
baseline_modelparametric model

Parametric model required by the policy.

cost_structuredict of costs

Dictionnary containing the cost values (float or 1d-array) and their corresponding names (either cf, cp or cr).

one_cyclebool, default False

If True, returns the one cycle variation of the policy.

**kwargs

Extra arguments required by the policy (a0, ar, discounting_rate, etc.)

Returns:
Policy

Policy corresponding to the baseline_model and the cost_structure.

Raises:
ValueError

If baseline_model or cost_structure does not have a corresponding policy.