NatLabRockies / NatLabRockies/PRAS

Unit-level random seeds

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Julia
Stars
76
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Define unit-level random seeds to enable adding or removing resources without impacting the random outages associated with other resources. Currently, if a new unit is added, the simulation+sample seed will be used for the additional outage draws, changing which random numbers are associated with which units and thus the outage profiles of all units.

This would add a third level of seeding to a simulation:

  1. Simulation seed: primary random seed for the entire simulation. Provided (or generated automatically) when the simulation is initiated.
  2. Sample seed: secondary seed assigned to each sample from 1:nsamples. Generated automatically when makesamples sends simulation jobs to the threaded coroutines. Providing these directly (#36) would allow recreating specific random outage conditions
  3. Unit seed: new, tertiary seed assigned to each unit. Fixed across runs and samples and defined in the system specification data (e.g. .pras files)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how simulation and sample seeds are created and passed into outage draws, then inspect how system specification data is represented for unit-level seed definitions. Done means adding stable unit seeds so adding or removing a unit does not change other units' outage profiles, while preserving reproducibility across runs and samples.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.