Repository navigation
Let the redundancy search take start_probability - #512
Merged
Merged
Conversation
allocate_redundancy and redundancy_front take start_probability for cold standby: a spare that fails to start is skipped and the next is tried, as StandbyModel and standby blocks mean it. The search's reliability for a design then equals the diagram's once that design is applied. Giving it with switching_probability is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V339RzRHo8RS8Cz3uSbQgP
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
allocate_redundancyandredundancy_frontnow takestart_probability(a number, or a dict by node) for cold standby. It has the meaningStandbyModeland standby blocks already use: a spare that fails to start is skipped, and the next one is tried. Each cold design is scored as theStandbyModelit fits. So for a design with two or more spares, the reliability the search reports equals the diagram's once the design is applied. Until now the search had onlyswitching_probability, where a failed switch ends the arrangement, and that scores such designs a little lower.switching_probabilityworks as before. Giving both is refused with a message that says what each means.start_probabilityworks with any number of units required.Tests
test_redundancy_strategies.py:test_redundancy_strategies,test_api_consistency,test_allocation_trains,test_ccf_allocationsand the module's doctests: all pass. Threetest_public_internalsfailures also fail ondevwithout this change.Changelog (Added) and the design guide are updated.
🤖 Generated with Claude Code
https://claude.ai/code/session_01V339RzRHo8RS8Cz3uSbQgP