OneCycleRunToFailure#
- class relife.OneCycleRunToFailure(model, cf, *, discounting_rate=0.0, model_args=(), nb_assets=1, a0=None)[source]#
One cyle run-to-failure policy
A policy for running assets to failure within one cycle.
- Parameters:
- modelLifetimeModel
The lifetime model of the assets.
- cfnp.ndarray
The cost of failure for each asset.
- discounting_ratefloat, default is 0.
The discounting rate.
- model_argsModelArgs, optional
ModelArgs is a tuple of zero or more ndarray required by the underlying lifetime model of the process.
- nb_assetsint, optional
Number of assets (default is 1).
- a0ndarray, optional
Current ages of the assets (default is None). Setting
a0
will add left truncations.
Methods
The asymptotic expected equivalent annual cost.
The asymptotic expected total cost.
The expected equivalent annual cost.
The expected total cost.
Sample simulation .
Attributes
discounting
model1
reward
- asymptotic_expected_equivalent_annual_cost()[source]#
The asymptotic expected equivalent annual cost.
- Returns:
- ndarray
The asymptotic expected equivalent annual cost.
- asymptotic_expected_total_cost()[source]#
The asymptotic expected total cost.
- Returns:
- ndarray
The asymptotic expected total cost for each asset.
- expected_equivalent_annual_cost(timeline, dt=1.0)[source]#
The expected equivalent annual cost.
- Parameters:
- timelinendarray
Timeline of points where the function is evaluated
- dtfloat, default 1.0
The length of the first period before discounting
- Returns:
- ndarray
The expected equivalent annual cost until each time point