Skip to content
/ PRAS Public

NREL's Probabilistic Resource Adequacy Suite (PRAS)

Notifications You must be signed in to change notification settings

NREL/PRAS

Repository files navigation

Probabilistic Resource Adequacy Suite

PRAS.jl Tests PRASCore.jl Tests PRASFiles.jl Tests PRASCapacityCredits.jl Tests

codecov Documentation DOI

The Probabilistic Resource Adequacy Suite (PRAS) is a collection of tools for bulk power system resource adequacy analysis and capacity credit calculation. The most recent documentation report (for version 0.6) is available here.

Installation

PRAS is written in the Julia numerical programming language. If you haven't already, your first step should be to install Julia. Instructions are available at julialang.org/downloads.

Once you have Julia installed, PRAS can be installed from the Julia General registry which is installed by default if you have no other registries installed.

From the main Julia prompt, type ] to enter the package management REPL. The prompt should change from julia> to something like (v1.10) pkg> (your version number may be slightly different). Type (or paste) the following (minus the pkg> prompt)

pkg> add PRAS

This will automatically install the PRAS Julia module and all of its related dependencies. At this point you can hit Backspace to switch back to the main julia> prompt.

Basic usage

With PRAS installed, you can load it into Julia as follows:

using PRAS

This will make the core PRAS functions (most importantly, the SystemModel and assess functions) available for use in your Julia script or interactive REPL session.

The following snippet shows expected unserved energy (EUE) assessment for the RTS-GMLC system, which is packaged with PRAS.

rts_gmlc_sys = PRAS.rts_gmlc();
shortfall, = assess(rts_gmlc_sys,
                    SequentialMonteCarlo(samples=10,seed=1),
                    Shortfall()
                    );
println("Total system $(EUE(shortfall))")
# Total system EUE = 0.00000 MWh/8784h

The Getting Started document provides more information on using PRAS.

About

NREL's Probabilistic Resource Adequacy Suite (PRAS)

Resources

Stars

Watchers

Forks

Languages