run_to_failure_policy#

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

Creates a run-to-failure policy.

Parameters:
baseline_modelparametric model

Parametric model required by the policy.

cffloat or 1d-array

Cost of failure.

one_cyclebool, default False

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

**kwargs

Extra arguments required by the policy (a0, 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.