Skip to content

Commit

Permalink
Merge pull request #14 from invenia/bes/string31
Browse files Browse the repository at this point in the history
Use String31 for bid and load unique identifiers
  • Loading branch information
BSnelling authored Jun 10, 2022
2 parents 3f1760a + 08b95c8 commit 9b2fb22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "FullNetworkSystems"
uuid = "877b7152-b508-43dc-81fb-72341a693988"
authors = ["Invenia Technical Computing Corporation"]
version = "1.1.0"
version = "1.2.0"

[deps]
AxisKeys = "94b1ba4f-4ee9-5380-92f1-94cde586c3c5"
Expand Down
11 changes: 6 additions & 5 deletions src/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ end
###### Static Component Types ######
const BusName = InlineString15
const BranchName = InlineString31
const BidName = InlineString31

"""
$TYPEDEF
Expand Down Expand Up @@ -300,16 +301,16 @@ struct SystemDA <: System
"`Dictionary` where the keys are bus names and the values are generator ids at that bus"
gens_per_bus::Dictionary{BusName, Vector{Int}}
"`Dictionary` where the keys are bus names and the values are increment bid ids at that bus"
incs_per_bus::Dictionary{BusName, Vector{String}}
incs_per_bus::Dictionary{BusName, Vector{BidName}}
"`Dictionary` where the keys are bus names and the values are decrement bid ids at that bus"
decs_per_bus::Dictionary{BusName, Vector{String}}
decs_per_bus::Dictionary{BusName, Vector{BidName}}
"""
`Dictionary` where the keys are bus names and the values are price sensitive demand bid
ids at that bus
"""
psds_per_bus::Dictionary{BusName, Vector{String}}
psds_per_bus::Dictionary{BusName, Vector{BidName}}
"`Dictionary` where the keys are bus names and the values are load ids at that bus"
loads_per_bus::Dictionary{BusName, Vector{String}}
loads_per_bus::Dictionary{BusName, Vector{BidName}}

"Zones in the `System`, which will also include a `Zone` entry for the market wide zone"
zones::Dictionary{Int, Zone}
Expand Down Expand Up @@ -362,7 +363,7 @@ struct SystemRT <: System
"`Dictionary` where the keys are bus names and the values are generator ids at that bus"
gens_per_bus::Dictionary{BusName, Vector{Int}}
"`Dictionary` where the keys are bus names and the values are load ids at that bus"
loads_per_bus::Dictionary{BusName, Vector{String}}
loads_per_bus::Dictionary{BusName, Vector{BidName}}

"Zones in the `System`, which will also include a `Zone` entry for the market wide zone"
zones::Dictionary{Int, Zone}
Expand Down

2 comments on commit 9b2fb22

@BSnelling
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/62124

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.0 -m "<description of version>" 9b2fb22fcf1e467384085c39be38fe6ae2929044
git push origin v1.2.0

Please sign in to comment.