Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Latest commit

 

History

History
94 lines (73 loc) · 5.38 KB

README.md

File metadata and controls

94 lines (73 loc) · 5.38 KB

PowerSystemsReduction.jl

This package is now archived. The network reduction functionality has been now integrated into PowerNetworkMatrices.jl and it doesn't modify the system input data.

The PowerSystemsReduction.jl package provides utilities and routines to reduce the size and complexity of a System represented in PowerSystems.jl. Use with care as it modifies the input data.

Installation

using Pkg
Pkg.add("https://github.com/NREL-SIIP/PowerSystemsReduction.jl")

Example

julia> using PowerSystems

julia> using PowerSystemCaseBuilder

julia> using PowerSystemsReduction

julia> sys = build_system(PSSETestSystems, "pti_case73_sys")
System
┌───────────────────┬─────────────┐
│ Property          │ Value       │
├───────────────────┼─────────────┤
│ System Units Base │ SYSTEM_BASE │
│ Base Power        │ 100.0       │
│ Base Frequency    │ 60.0        │
│ Num Components    │ 460         │
└───────────────────┴─────────────┘

Static Components
┌─────────────────┬───────┬────────────────────────┬───────────────┐
│ Type            │ Count │ Has Static Time Series │ Has Forecasts │
├─────────────────┼───────┼────────────────────────┼───────────────┤
│ Arc             │ 108falsefalse         │
│ Area            │ 3falsefalse         │
│ Bus             │ 73falsefalse         │
│ FixedAdmittance │ 3falsefalse         │
│ Line            │ 105falsefalse         │
│ LoadZone        │ 3falsefalse         │
│ PowerLoad       │ 51falsefalse         │
│ TapTransformer  │ 15falsefalse         │
│ ThermalStandard │ 99falsefalse         │
└─────────────────┴───────┴────────────────────────┴───────────────┘



julia> rollup = transmission_rollup!(sys)
┌ Info: removing leaf nodes
└   length(leaf_nodes) = 2
Dict{Any, Any} with 2 entries:
  "208" => Any["207"]
  "308" => Any["307"]

julia> sys
System
┌───────────────────┬─────────────┐
│ Property          │ Value       │
├───────────────────┼─────────────┤
│ System Units Base │ SYSTEM_BASE │
│ Base Power        │ 100.0       │
│ Base Frequency    │ 60.0        │
│ Num Components    │ 454         │
└───────────────────┴─────────────┘

Static Components
┌─────────────────┬───────┬────────────────────────┬───────────────┐
│ Type            │ Count │ Has Static Time Series │ Has Forecasts │
├─────────────────┼───────┼────────────────────────┼───────────────┤
│ Arc             │ 106falsefalse         │
│ Area            │ 3falsefalse         │
│ Bus             │ 71falsefalse         │
│ FixedAdmittance │ 3falsefalse         │
│ Line            │ 103falsefalse         │
│ LoadZone        │ 3falsefalse         │
│ PowerLoad       │ 51falsefalse         │
│ TapTransformer  │ 15falsefalse         │
│ ThermalStandard │ 99falsefalse         │
└─────────────────┴───────┴────────────────────────┴───────────────┘

Development

Contributions to the development and enahancement of PowerSystems is welcome. Please see CONTRIBUTING.md for code contribution guidelines.

License

PowerSystemsReduction is released under a BSD license. PowerSystems has been developed as part of the Scalable Integrated Infrastructure Planning (SIIP) initiative at the U.S. Department of Energy's National Renewable Energy Laboratory (NREL)