Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .claude/Sienna.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Avoid returning `Union` types or abstract types.

## Code Conventions

Style guide: <https://nrel-sienna.github.io/InfrastructureSystems.jl/stable/style/>
Style guide: <https://sienna-platform.github.io/InfrastructureSystems.jl/stable/style/>

Formatter (JuliaFormatter): Use the formatter script provided in each package.

Expand All @@ -77,12 +77,12 @@ Key rules:

Framework: [Diataxis](https://diataxis.fr/)

Sienna guide: <https://nrel-sienna.github.io/InfrastructureSystems.jl/stable/docs_best_practices/explanation/>
Sienna guide: <https://sienna-platform.github.io/InfrastructureSystems.jl/stable/docs_best_practices/explanation/>

Sienna guide for Diataxis-style tutorials: <https://nrel-sienna.github.io/InfrastructureSystems.jl/stable/docs_best_practices/how-to/write_a_tutorial/>
Sienna guide for Diataxis-style tutorials: <https://sienna-platform.github.io/InfrastructureSystems.jl/stable/docs_best_practices/how-to/write_a_tutorial/>
Format for tutorial scripts: <https://fredrikekre.github.io/Literate.jl/v2/>
Sienna guide for Diataxis-style how-to's: <https://nrel-sienna.github.io/InfrastructureSystems.jl/stable/docs_best_practices/how-to/write_a_how-to/>
Sienna guide for APIs: <https://nrel-sienna.github.io/InfrastructureSystems.jl/stable/docs_best_practices/how-to/write_docstrings_org_api/>
Sienna guide for Diataxis-style how-to's: <https://sienna-platform.github.io/InfrastructureSystems.jl/stable/docs_best_practices/how-to/write_a_how-to/>
Sienna guide for APIs: <https://sienna-platform.github.io/InfrastructureSystems.jl/stable/docs_best_practices/how-to/write_docstrings_org_api/>

Docstring requirements:

Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Thanks for opening a PR to PowerOperationsModels.jl, please take note of the following when making a PR:

Check the [contributor guidelines](https://nrel-sienna.github.io/PowerOperationsModels.jl/stable/api/developer_guidelines/)
Check the [contributor guidelines](https://sienna-platform.github.io/PowerOperationsModels.jl/stable/api/developer_guidelines/)
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing

Community driven development of this package is encouraged. To maintain code quality standards, please adhere to the following guidlines when contributing:
- To get started, <a href="https://www.clahub.com/agreements/NREL-Sienna/PowerOperationsModels.jl">sign the Contributor License Agreement</a>.
- To get started, <a href="https://www.clahub.com/agreements/Sienna-Platform/PowerOperationsModels.jl">sign the Contributor License Agreement</a>.
- Please do your best to adhere to our [coding style guide](docs/src/developer/style.md).
- To submit code contributions, [fork](https://help.github.com/articles/fork-a-repo/) the repository, commit your changes, and [submit a pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/).
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PowerOperationsModels"
uuid = "bed98974-b02a-5e2f-9ee0-a103f5c450dd"
version = "0.1.0"
authors = ["NREL-Sienna"]
authors = ["Sienna-Platform"]

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# PowerOperationsModels.jl

[![Main - CI](https://github.com/NREL-Sienna/PowerOperationsModels.jl/actions/workflows/main-tests.yml/badge.svg)](https://github.com/NREL-Sienna/PowerOperationsModels.jl/actions/workflows/main-tests.yml)
[![codecov](https://codecov.io/gh/NREL-Sienna/PowerOperationsModels.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/NREL-Sienna/PowerOperationsModels.jl)
[![Documentation Build](https://github.com/NREL-Sienna/PowerOperationsModels.jl/workflows/Documentation/badge.svg?)](https://nrel-sienna.github.io/PowerOperationsModels.jl/stable)
[<img src="https://img.shields.io/badge/slack-@Sienna/PowerOperationsModels-sienna.svg?logo=slack">](https://join.slack.com/t/nrel-sienna/shared_invite/zt-glam9vdu-o8A9TwZTZqqNTKHa7q3BpQ)
[![Main - CI](https://github.com/Sienna-Platform/PowerOperationsModels.jl/actions/workflows/main-tests.yml/badge.svg)](https://github.com/Sienna-Platform/PowerOperationsModels.jl/actions/workflows/main-tests.yml)
[![codecov](https://codecov.io/gh/Sienna-Platform/PowerOperationsModels.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/Sienna-Platform/PowerOperationsModels.jl)
[![Documentation Build](https://github.com/Sienna-Platform/PowerOperationsModels.jl/workflows/Documentation/badge.svg?)](https://sienna-platform.github.io/PowerOperationsModels.jl/stable)
[<img src="https://img.shields.io/badge/slack-@Sienna/PowerOperationsModels-sienna.svg?logo=slack">](https://join.slack.com/t/core-sienna/shared_invite/zt-glam9vdu-o8A9TwZTZqqNTKHa7q3BpQ)
[![PowerOperationsModels.jl Downloads](https://shields.io/endpoint?url=https://pkgs.genieframework.com/api/v1/badge/PowerOperationsModels)](https://pkgs.genieframework.com?packages=PowerOperationsModels)

`PowerOperationsModels.jl` is a Julia package that contains optimization models for power system components. It is part of the NREL Sienna ecosystem for power system modeling and simulation.
`PowerOperationsModels.jl` is a Julia package that contains optimization models for power system components. It is part of the Sienna Platform ecosystem for power system modeling and simulation.

## Features

Expand All @@ -17,8 +17,8 @@

## Development

Contributions to the development and enhancement of PowerOperationsModels.jl are welcome. Please see [CONTRIBUTING.md](https://github.com/NREL-Sienna/PowerOperationsModels.jl/blob/main/CONTRIBUTING.md) for code contribution guidelines.
Contributions to the development and enhancement of PowerOperationsModels.jl are welcome. Please see [CONTRIBUTING.md](https://github.com/Sienna-Platform/PowerOperationsModels.jl/blob/main/CONTRIBUTING.md) for code contribution guidelines.

## License

PowerOperationsModels.jl is released under a BSD [license](https://github.com/NREL-Sienna/PowerOperationsModels.jl/blob/main/LICENSE). PowerOperationsModels.jl has been developed as part of the Sienna ecosystem at the U.S. Department of Energy's National Renewable Energy Laboratory ([NREL](https://www.nrel.gov/))
PowerOperationsModels.jl is released under a BSD [license](https://github.com/Sienna-Platform/PowerOperationsModels.jl/blob/main/LICENSE). PowerOperationsModels.jl has been developed as part of the Sienna ecosystem at the U.S. Department of Energy's National Laboratory of the Rockies ([NLR](https://www.nlr.gov/)), formerly known as NREL.
10 changes: 5 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ using PowerOperationsModels
using DocumenterInterLinks

links = InterLinks(
"PowerSystems" => "https://nrel-sienna.github.io/PowerSystems.jl/stable/",
"PowerSimulations" => "https://nrel-sienna.github.io/PowerSimulations.jl/stable/",
"PowerSystems" => "https://sienna-platform.github.io/PowerSystems.jl/stable/",
"PowerSimulations" => "https://sienna-platform.github.io/PowerSimulations.jl/stable/",
)

include(joinpath(@__DIR__, "make_tutorials.jl"))
Expand All @@ -28,15 +28,15 @@ makedocs(
format = Documenter.HTML(
prettyurls = haskey(ENV, "GITHUB_ACTIONS"),
size_threshold = nothing,),
sitename = "github.com/NREL-Sienna/PowerOperationsModels.jl",
authors = "NREL-Sienna",
sitename = "github.com/Sienna-Platform/PowerOperationsModels.jl",
authors = "Sienna-Platform",
pages = Any[p for p in pages],
draft = false,
plugins = [links],
)

deploydocs(
repo="github.com/NREL-Sienna/PowerOperationsModels.jl",
repo="github.com/Sienna-Platform/PowerOperationsModels.jl",
target="build",
branch="gh-pages",
devbranch="main",
Expand Down
2 changes: 1 addition & 1 deletion docs/make_tutorials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ end
# This ensures that links generated in notebooks point to the correct
# location for stable, dev, and preview builds.
function _compute_docs_base_url()
base = "https://nrel-sienna.github.io/PowerOperationsModels.jl"
base = "https://sienna-platform.github.io/PowerOperationsModels.jl"

current_version = get(ENV, "DOCUMENTER_CURRENT_VERSION", "")

Expand Down
12 changes: 6 additions & 6 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ CurrentModule = PowerOperationsModels

## Overview

`PowerOperationsModels.jl` is a [`Julia`](http://www.julialang.org) package that provides optimization models for power system components including thermal generators, renewable energy sources, energy storage, HVDC systems, and loads. It is designed to work with `InfrastructureOptimizationModels.jl` infrastructure and integrates with [`PowerSystems.jl`](https://nrel-sienna.github.io/PowerSystems.jl/stable/) for power system data structures.
`PowerOperationsModels.jl` is a [`Julia`](http://www.julialang.org) package that provides optimization models for power system components including thermal generators, renewable energy sources, energy storage, HVDC systems, and loads. It is designed to work with `InfrastructureOptimizationModels.jl` infrastructure and integrates with [`PowerSystems.jl`](https://sienna-platform.github.io/PowerSystems.jl/stable/) for power system data structures.

## About

`PowerOperationsModels` is part of the National Laboratory of the Rockies NLR (formerly
known as NREL)
[Sienna ecosystem](https://nrel-sienna.github.io/Sienna/), an open source framework for
[Sienna ecosystem](https://sienna-platform.github.io/Sienna/), an open source framework for
scheduling problems and dynamic simulations for power systems. The Sienna ecosystem can be
[found on github](https://github.com/NREL-Sienna/Sienna). It contains three applications:
[found on github](https://github.com/Sienna-Platform/Sienna). It contains three applications:

- [Sienna\Data](https://nrel-sienna.github.io/Sienna/pages/applications/sienna_data.html) enables
- [Sienna\Data](https://sienna-platform.github.io/Sienna/pages/applications/sienna_data.html) enables
efficient data input, analysis, and transformation
- [Sienna\Ops](https://nrel-sienna.github.io/Sienna/pages/applications/sienna_ops.html) enables
- [Sienna\Ops](https://sienna-platform.github.io/Sienna/pages/applications/sienna_ops.html) enables
enables system scheduling simulations by formulating and solving optimization problems
- [Sienna\Dyn](https://nrel-sienna.github.io/Sienna/pages/applications/sienna_dyn.html) enables
- [Sienna\Dyn](https://sienna-platform.github.io/Sienna/pages/applications/sienna_dyn.html) enables
system transient analysis including small signal stability and full system dynamic
simulations

Expand Down
6 changes: 3 additions & 3 deletions docs/src/reference/developer_guidelines.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Developer Guidelines

In order to contribute to `PowerSystems.jl` repository please read the following sections of
[`InfrastructureSystems.jl`](https://github.com/NREL-Sienna/InfrastructureSystems.jl)
[`InfrastructureSystems.jl`](https://github.com/Sienna-Platform/InfrastructureSystems.jl)
documentation in detail:

1. [Style Guide](https://nrel-sienna.github.io/InfrastructureSystems.jl/stable/style/)
2. [Contributing Guidelines](https://github.com/NREL-Sienna/PowerOperationsModels.jl/blob/main/CONTRIBUTING.md)
1. [Style Guide](https://sienna-platform.github.io/InfrastructureSystems.jl/stable/style/)
2. [Contributing Guidelines](https://github.com/Sienna-Platform/PowerOperationsModels.jl/blob/main/CONTRIBUTING.md)

Pull requests are always welcome to fix bugs or add additional modeling capabilities.

Expand Down
6 changes: 3 additions & 3 deletions src/PowerModels/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ This submodule represents the evolution of the PowerModels.jl integration that w

The following components from PowerModels.jl have been intentionally excluded from this submodule, as these capabilities are provided by other packages in the Sienna ecosystem:

- **Parsing code**: Data parsing and import functionality is handled by [PowerSystems.jl](https://github.com/NREL-Sienna/PowerSystems.jl)
- **DC power flow**: Implemented in [PowerFlows.jl](https://github.com/NREL-Sienna/PowerFlows.jl)
- **AC power flow (NLSolve)**: Implemented in [PowerFlows.jl](https://github.com/NREL-Sienna/PowerFlows.jl)
- **Parsing code**: Data parsing and import functionality is handled by [PowerSystems.jl](https://github.com/Sienna-Platform/PowerSystems.jl)
- **DC power flow**: Implemented in [PowerFlows.jl](https://github.com/Sienna-Platform/PowerFlows.jl)
- **AC power flow (NLSolve)**: Implemented in [PowerFlows.jl](https://github.com/Sienna-Platform/PowerFlows.jl)

This submodule focuses exclusively on optimization-based formulations for use within the PowerOperationsModels.jl framework.

Expand Down
8 changes: 4 additions & 4 deletions src/core/network_formulations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ abstract type AbstractPTDFModel <: AbstractDCPModel end
abstract type AbstractSecurityConstrainedPTDFModel <: AbstractPTDFModel end

"""
Linear active power approximation using the power transfer distribution factor [PTDF](https://nrel-sienna.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_PTDF_matrix/) matrix.
Linear active power approximation using the power transfer distribution factor [PTDF](https://sienna-platform.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_PTDF_matrix/) matrix.
"""
struct PTDFPowerModel <: AbstractPTDFModel end

"""
Linear active power approximation using the power transfer distribution factor [PTDF](https://nrel-sienna.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_PTDF_matrix/) matrix and line outage distribution factors [LODF](https://nrel-sienna.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_LODF_matrix/) for branches outages. If exists, the rating b is considered as the branch power limit for post-contingency flows, otherwise the standard rating is considered.
Linear active power approximation using the power transfer distribution factor [PTDF](https://sienna-platform.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_PTDF_matrix/) matrix and line outage distribution factors [LODF](https://sienna-platform.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_LODF_matrix/) for branches outages. If exists, the rating b is considered as the branch power limit for post-contingency flows, otherwise the standard rating is considered.
"""
struct SecurityConstrainedPTDFPowerModel <: AbstractSecurityConstrainedPTDFModel end

Expand All @@ -26,12 +26,12 @@ Approximation to represent inter-area flow with each area represented as a singl
struct AreaBalancePowerModel <: AbstractActivePowerModel end

"""
Linear active power approximation using the power transfer distribution factor [PTDF](https://nrel-sienna.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_PTDF_matrix/) matrix. Balancing areas as well as synchrounous regions.
Linear active power approximation using the power transfer distribution factor [PTDF](https://sienna-platform.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_PTDF_matrix/) matrix. Balancing areas as well as synchrounous regions.
"""
struct AreaPTDFPowerModel <: AbstractPTDFModel end

"""
Linear active power approximation using the power transfer distribution factor [PTDF](https://nrel-sienna.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_PTDF_matrix/) matrix and [LODF](https://nrel-sienna.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_LODF_matrix/) for branches outages. Balancing areas as well as synchrounous regions.
Linear active power approximation using the power transfer distribution factor [PTDF](https://sienna-platform.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_PTDF_matrix/) matrix and [LODF](https://sienna-platform.github.io/PowerNetworkMatrices.jl/stable/tutorials/tutorial_LODF_matrix/) for branches outages. Balancing areas as well as synchrounous regions.
"""
struct SecurityConstrainedAreaPTDFPowerModel <: AbstractSecurityConstrainedPTDFModel end

Expand Down
2 changes: 1 addition & 1 deletion test/test_network_constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function add_dummy_time_series_data!(sys)
return sys
end

# Regression test for https://github.com/NREL-Sienna/PowerSimulations.jl/issues/1594
# Regression test for https://github.com/Sienna-Platform/PowerSimulations.jl/issues/1594
# Combines a NetworkModel with radial + degree-two reductions, a Line DeviceModel
# with a filter_function, and a request for FlowRateConstraint duals. Before the
# fix in src/devices_models/devices/common/add_constraint_dual.jl, the dual
Expand Down
2 changes: 1 addition & 1 deletion test/test_utils/iec_simulation_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function run_iec_sim(sys::System, comp_name::String, ::Type{T};
end

# TODO test slope, breakpoint written parameters against time series values
# (https://github.com/NREL-Sienna/PowerSimulations.jl/issues/1429)
# (https://github.com/Sienna-Platform/PowerSimulations.jl/issues/1429)

decisions = (
_read_one_value(res, IOM.ActivePowerOutVariable, T, comp_name),
Expand Down
Loading