NonHomogeneousPoissonAgeReplacementPolicy#
- class relife.policy.NonHomogeneousPoissonAgeReplacementPolicy(process, cr, cp, discounting_rate=0.0, ar=None)[source]#
Age replacement policy for non-Homogeneous Poisson process.
- Parameters:
- processnon-Homogeneous Poisson process
The underlying process. If the process expects covars, it must be frozen before.
- crfloat or 1darray
The cost of repair.
- cpfloat or 1darray
The cost of failure.
- discounting_ratefloat, default is 0.
The discounting rate value used in the exponential discounting function
- arfloat or 1darray, optional
Ages of preventive replacements, by default None. If not given, one must call
optimize
to setar
values and access to the rest of the object interface.
- Attributes:
ar
Ages of the preventive replacements
cr
Cost of repair
cp
Cost of preventive replacements
discounting_rate
The discounting rate
Methods
The asymtotic expected equivalent annual cost
Computes the optimal age(s) of replacement and updates the internal
ar
value(s).- property ar#
Ages of the preventive replacements
- Returns:
- ndarray
- asymptotic_expected_equivalent_annual_cost()[source]#
The asymtotic expected equivalent annual cost
\[\lim_{t\to\infty} \text{EEAC}(t)\]where \(\text{EEAC}(t)\) is the expected equivalent annual cost at \(t\).
- Returns:
- ndarray
The asymptotic expected equivalent annual cost
- property cp#
Cost of preventive replacements
- Returns:
- ndarray
- property cr#
Cost of repair
- Returns:
- ndarray
- property discounting_rate#
The discounting rate
- Returns:
- float