Skip to content

Commit

Permalink
allow market bid cost in storage devices
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Aug 28, 2023
1 parent 40e8311 commit 48f3399
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/descriptors/power_system_structs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3974,7 +3974,7 @@
"name": "operation_cost",
"null_value": "StorageManagementCost()",
"default": "StorageManagementCost()",
"data_type": "StorageManagementCost"
"data_type": "Union{StorageManagementCost, MarketBidCost}"
},
{
"name": "services",
Expand Down Expand Up @@ -4137,7 +4137,7 @@
"name": "operation_cost",
"null_value": "StorageManagementCost()",
"data_type": "StorageManagementCost",
"default": "StorageManagementCost()"
"default": "Union{StorageManagementCost, MarketBidCost}"
},
{
"name": "storage_target",
Expand Down
4 changes: 2 additions & 2 deletions src/models/generated/BatteryEMS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ mutable struct BatteryEMS <: Storage
internal::InfrastructureSystemsInternal
end

function BatteryEMS(name, available, bus, prime_mover, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=StorageManagementCost(), storage_target=0.0, cycle_limits=1e4, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), )
function BatteryEMS(name, available, bus, prime_mover, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=Union{StorageManagementCost, MarketBidCost}, storage_target=0.0, cycle_limits=1e4, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), )
BatteryEMS(name, available, bus, prime_mover, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost, storage_target, cycle_limits, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), )

Check warning on line 95 in src/models/generated/BatteryEMS.jl

View check run for this annotation

Codecov / codecov/patch

src/models/generated/BatteryEMS.jl#L94-L95

Added lines #L94 - L95 were not covered by tests
end

function BatteryEMS(; name, available, bus, prime_mover, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=StorageManagementCost(), storage_target=0.0, cycle_limits=1e4, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), )
function BatteryEMS(; name, available, bus, prime_mover, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=Union{StorageManagementCost, MarketBidCost}, storage_target=0.0, cycle_limits=1e4, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), )
BatteryEMS(name, available, bus, prime_mover, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost, storage_target, cycle_limits, services, dynamic_injector, ext, time_series_container, internal, )
end

Expand Down
6 changes: 3 additions & 3 deletions src/models/generated/GenericBattery.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This file is auto-generated. Do not edit.
reactive_power::Float64
reactive_power_limits::Union{Nothing, MinMax}
base_power::Float64
operation_cost::StorageManagementCost
operation_cost::Union{StorageManagementCost, MarketBidCost}
services::Vector{Service}
dynamic_injector::Union{Nothing, DynamicInjection}
ext::Dict{String, Any}
Expand All @@ -45,7 +45,7 @@ Data structure for a generic battery
- `reactive_power::Float64`, validation range: `reactive_power_limits`, action if invalid: `warn`
- `reactive_power_limits::Union{Nothing, MinMax}`
- `base_power::Float64`: Base power of the unit in MVA, validation range: `(0, nothing)`, action if invalid: `warn`
- `operation_cost::StorageManagementCost`
- `operation_cost::Union{StorageManagementCost, MarketBidCost}`
- `services::Vector{Service}`: Services that this device contributes to
- `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device
- `ext::Dict{String, Any}`
Expand All @@ -71,7 +71,7 @@ mutable struct GenericBattery <: Storage
reactive_power_limits::Union{Nothing, MinMax}
"Base power of the unit in MVA"
base_power::Float64
operation_cost::StorageManagementCost
operation_cost::Union{StorageManagementCost, MarketBidCost}
"Services that this device contributes to"
services::Vector{Service}
"corresponding dynamic injection device"
Expand Down

0 comments on commit 48f3399

Please sign in to comment.