Add LoadSharingModel: load-sharing dynamic node (#38) - #64
Merged
Conversation
A sibling to StandbyModel where n coupled units share a total load and the survivors carry more (and so age faster) as siblings fail -- dependent failure. The group works while at least k of n units survive. Each unit is a fitted AFT model; a cumulative-exposure event loop advances every survivor's baseline clock at rate phi(L / survivors), dropping the first unit to reach its baseline exposure-to-failure threshold. This is the "self-loading" sibling of the condition-based layer: same engine, but the load comes from the group's own survivors (L / s) rather than from sensors. - New LoadSharingModel (repyability/rbd/load_sharing_node.py): sf/ff/mean/ random/cs; identical Exponential-baseline units get an exact hypoexponential closed form, otherwise a Kaplan-Meier fit to simulated lifetimes (is_simulated reports which). phi == 1 reproduces the exact k-out-of-n parallel result. - Wired into NonRepairableRBD as a simulation node (like StandbyModel): _SIMULATION_NODE_TYPES, time-varying detection, non-stateable, node_mttf; RBD (de)serialisation; exported from the package. - Tests anchor the phi == 1 closed form against the exact k-of-n order statistic, check closed-form/Monte-Carlo agreement, dependent-failure monotonicity, RBD integration and serialisation. Docs (guide + api) and CHANGELOG updated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NUGaeQXKxjjiQ1ULT1ApXS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
LoadSharingModel(#38): a dynamic RBD node for load-sharing / dependent failure, a sibling toStandbyModel. n coupled units share a total load; when one fails the survivors carry more (L / s) and — through their AFTphi(load)response — age faster. The group works while ≥kofnsurvive. Because the units are coupled, the group is a single node (it can't benindependent nodes).Engine — a cumulative-exposure event loop (per Monte-Carlo replicate): draw each unit's baseline exposure-to-failure threshold, advance every survivor's baseline clock at rate
phi(L / survivors), drop the first to reach its threshold, repeat until fewer thanksurvive.This is the "self-loading" sibling of the condition-based layer: same conditional-survival engine, but the load comes from the group's own survivors rather than from sensors.
repyability/rbd/load_sharing_node.py:sf/ff/mean/random/cs. Identical Exponential-baseline units get an exact hypoexponential closed form (stage ratess·λ·phi(L/s)); otherwise the survival is a Kaplan-Meier fit to simulated lifetimes (is_simulatedreports which).NonRepairableRBDexactly likeStandbyModel(simulation node, time-varying, non-stateable,node_mttf), RBD (de)serialisation, and exported from the package.Type of change
Checklist
black,isort,flake8, andmypypasscoverage run -m pytestpasses and stays above the coverage gateCHANGELOG.mdupdated under[Unreleased]Notes for reviewers
phi ≡ 1) the stage rates becomes·λand the closed form is exactly the(N-k+1)-th order statistic ofNi.i.d. Exponentials — the ordinary k-out-of-n parallel result. A test checks this against the binomial-sum formula, and closed-form vs Monte-Carlo agreement is tested for the load-dependent case.phi/exposure machinery kept internal here — it does not touch the publicRegressionNode/NodeStateAPI.🤖 Generated with Claude Code
https://claude.ai/code/session_01NUGaeQXKxjjiQ1ULT1ApXS
Generated by Claude Code