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_modeland thecost_structure.
- Raises:
- ValueError
If
baseline_modelorcost_structuredoes not have a corresponding policy.