Skip to main content

RSR: Reference-state System Reliability Method

Overview

This repository provides a Python implementation of RSR (Reference-state System Reliability Method) for efficient reliability and resilience analysis of networks. It includes:

  • Core package rsr/ with tensor-based algorithms
  • Demonstration notebooks under demos/
  • Unit tests under tests/

The code is designed for research and education on large-scale system uncertainty quantification.

Publication / Citation

In preparation. Most relevant publication is: Byun, J. E., Ryu, H. & Straub, D. (2024). Branch-and-bound algorithm for efficient reliability analysis of general coherent systems. arXiv preprint arXiv:2410.22363.

Features

  • Reference-state system reliability and rule extraction algorithms
  • Example benchmark datasets on various systems (e.g., distribution substation, EMA shortest path, toy k-connectivity)
  • The network data in the demos are from GitHub repo network-datasets
  • PyTorch-friendly implementations for scalable computation

Installation

You can install rsr in one of two ways.

Option 1: Install from PyPI

The package is published on PyPI under the distribution name rsr-duco (the name rsr was already taken). The Python import name is still rsr:

pip install rsr-duco

Option 2: Install from source (developer version)

Clone the repo and install in editable mode (useful for development or when you want to modify the code):

git clone https://github.com/jieunbyun/rsr.git
cd <path/to/rsr>
pip install -e .

Using the package

Either option gives you the same import name:

import rsr
from rsr import rsr, utils

Dependencies are listed in pyproject.toml.

Usage

Refer to the demonstration notebooks in demos/ for example workflows:

License

This project is licensed under the terms of the LICENSE file included in this repository.

Metadata

Release files for rsr-duco 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rsr-duco 0.2.0
File Size Uploaded Provenance Actions
rsr_duco-0.2.0.tar.gz 51.9 kB Without provenance Details for rsr_duco-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rsr-duco 0.2.0
File Interpreter ABI Platform Actions
rsr_duco-0.2.0-py3-none-any.whl Python 3 none any Details for rsr_duco-0.2.0-py3-none-any.whl

Total release size: 87.7 kB

Release files / rsr_duco-0.2.0.tar.gz

Download URL rsr_duco-0.2.0.tar.gz
Size 51.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8930c6cdde1af364adca9a32ad0984b712e19822b1ff0eec23962154a16354d2
BLAKE2b-256 checksum
How to use checksums
1cef4386549506fa118493fe6d4f266e4ea0f0a37c6bb58d3050b5d8276f7dda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / rsr_duco-0.2.0-py3-none-any.whl

Download URL rsr_duco-0.2.0-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa0fa0d8c861edc8de0fe23da74e6c66d0725b1ebb54840e651f7db7824a80be
BLAKE2b-256 checksum
How to use checksums
0302acbf9aa1bc0048280bfe1d12cd82839180679b4bf76f20d43f12b02578be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for rsr-duco 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page