You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `mean_time_to_recovery::Float64`: Time elapsed to recovery after a failure in Milliseconds.
126
119
- `outage_transition_probability::Float64`: Characterizes the probability of failure (1 - p) in the geometric distribution.
127
-
- `monitored_components::Vector{Base.UUID}`: UUIDs of devices whose post-contingency state should be modeled when this outage occurs. Empty by default; semantics of an empty list are decided by the downstream consumer.
120
+
- `monitored_components::Set{Base.UUID}`: UUIDs of devices whose post-contingency state should be modeled when this outage occurs. Empty by default; semantics of an empty set are decided by the downstream consumer.
128
121
- `internal::InfrastructureSystemsInternal`: (**Do not modify.**) PowerSystems internal reference
@@ -142,7 +135,7 @@ Construct a [`GeometricDistributionForcedOutage`](@ref).
142
135
# Arguments
143
136
- `mean_time_to_recovery::Float64`: (default: `0.0`) Time elapsed to recovery after a failure in Milliseconds.
144
137
- `outage_transition_probability::Float64`: (default: `0.0`) Characterizes the probability of failure (1 - p) in the geometric distribution.
145
-
- `monitored_components`: (default: `Base.UUID[]`) Any iterable of `Base.UUID` or [`Device`](@ref). Devices are converted to their UUIDs internally.
138
+
- `monitored_components`: (default: `Base.UUID[]`) Any iterable of `Base.UUID` or [`Device`](@ref). Devices are converted to their UUIDs internally; duplicates are collapsed.
146
139
- `internal::InfrastructureSystemsInternal`: (default: `InfrastructureSystemsInternal()`) (**Do not modify.**) PowerSystems internal reference
147
140
"""
148
141
functionGeometricDistributionForcedOutage(;
@@ -154,7 +147,7 @@ function GeometricDistributionForcedOutage(;
154
147
returnGeometricDistributionForcedOutage(
155
148
mean_time_to_recovery,
156
149
outage_transition_probability,
157
-
Base.UUID[_as_uuid(x) for x in monitored_components],
150
+
Set{Base.UUID}(_as_uuid(x) for x in monitored_components),
158
151
internal,
159
152
)
160
153
end
@@ -171,12 +164,12 @@ Attribute that contains information regarding planned outages.
171
164
172
165
# Arguments
173
166
- `outage_schedule::String`: String name of the time series used for the scheduled outages
174
-
- `monitored_components::Vector{Base.UUID}`: UUIDs of devices whose post-contingency state should be modeled when this outage occurs. Empty by default; semantics of an empty list are decided by the downstream consumer.
167
+
- `monitored_components::Set{Base.UUID}`: UUIDs of devices whose post-contingency state should be modeled when this outage occurs. Empty by default; semantics of an empty set are decided by the downstream consumer.
175
168
- `internal::InfrastructureSystemsInternal`: (**Do not modify.**) PowerSystems internal reference
176
169
"""
177
170
struct PlannedOutage <:Outage
178
171
outage_schedule::String
179
-
monitored_components::Vector{Base.UUID}
172
+
monitored_components::Set{Base.UUID}
180
173
internal::InfrastructureSystemsInternal
181
174
end
182
175
@@ -187,7 +180,7 @@ Construct a [`PlannedOutage`](@ref).
187
180
188
181
# Arguments
189
182
- `outage_schedule::String`: String name of the time series used for the scheduled outages
190
-
- `monitored_components`: (default: `Base.UUID[]`) Any iterable of `Base.UUID` or [`Device`](@ref). Devices are converted to their UUIDs internally.
183
+
- `monitored_components`: (default: `Base.UUID[]`) Any iterable of `Base.UUID` or [`Device`](@ref). Devices are converted to their UUIDs internally; duplicates are collapsed.
191
184
- `internal::InfrastructureSystemsInternal`: (default: `InfrastructureSystemsInternal()`) (**Do not modify.**) PowerSystems internal reference
192
185
"""
193
186
functionPlannedOutage(;
@@ -197,7 +190,7 @@ function PlannedOutage(;
197
190
)
198
191
returnPlannedOutage(
199
192
outage_schedule,
200
-
Base.UUID[_as_uuid(x) for x in monitored_components],
193
+
Set{Base.UUID}(_as_uuid(x) for x in monitored_components),
201
194
internal,
202
195
)
203
196
end
@@ -211,12 +204,12 @@ The time series data for fixed outages can be obtained from the simulation of a
211
204
212
205
# Arguments
213
206
- `outage_status::Float64`: The forced outage status in the model. 1 represents outaged and 0 represents available.
214
-
- `monitored_components::Vector{Base.UUID}`: UUIDs of devices whose post-contingency state should be modeled when this outage occurs. Empty by default; semantics of an empty list are decided by the downstream consumer.
207
+
- `monitored_components::Set{Base.UUID}`: UUIDs of devices whose post-contingency state should be modeled when this outage occurs. Empty by default; semantics of an empty set are decided by the downstream consumer.
215
208
- `internal::InfrastructureSystemsInternal`: (**Do not modify.**) PowerSystems internal reference
216
209
"""
217
210
struct FixedForcedOutage <:UnplannedOutage
218
211
outage_status::Float64
219
-
monitored_components::Vector{Base.UUID}
212
+
monitored_components::Set{Base.UUID}
220
213
internal::InfrastructureSystemsInternal
221
214
end
222
215
@@ -227,7 +220,7 @@ Construct a [`FixedForcedOutage`](@ref).
227
220
228
221
# Arguments
229
222
- `outage_status::Float64`: The forced outage status in the model. 1 represents outaged and 0 represents available.
230
-
- `monitored_components`: (default: `Base.UUID[]`) Any iterable of `Base.UUID` or [`Device`](@ref). Devices are converted to their UUIDs internally.
223
+
- `monitored_components`: (default: `Base.UUID[]`) Any iterable of `Base.UUID` or [`Device`](@ref). Devices are converted to their UUIDs internally; duplicates are collapsed.
231
224
- `internal::InfrastructureSystemsInternal`: (default: `InfrastructureSystemsInternal()`) (**Do not modify.**) PowerSystems internal reference
232
225
"""
233
226
functionFixedForcedOutage(;
@@ -237,7 +230,7 @@ function FixedForcedOutage(;
237
230
)
238
231
returnFixedForcedOutage(
239
232
outage_status,
240
-
Base.UUID[_as_uuid(x) for x in monitored_components],
233
+
Set{Base.UUID}(_as_uuid(x) for x in monitored_components),
0 commit comments