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
Copy file name to clipboardExpand all lines: docs/src/how_to/market_bid_cost.md
+75-26Lines changed: 75 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,61 @@ A [`MarketBidCost`](@ref) is an `OperationalCost` data structure that allows the
4
4
cost model that is very similar to most US electricity market auctions with bids for energy
5
5
and ancillary services jointly. This page showcases how to create data for this cost function.
6
6
7
-
## Adding Energy bids to MarketBidCost
7
+
## Adding a Single Incremental Energy bids to MarketBidCost
8
8
9
-
### Step 1: Constructiong device with MarketBidCost
9
+
### Construct directly the MarketBidCost using the `make_market_bid_curve` method.
10
+
11
+
The `make_market_bid_curve` creates an incremental or decremental offer curve from a vector of `n` power values, a vector of `n-1` marginal costs and single initial input. For example, the following code creates an incremental offer curve:
**NOTE:** Due to [limitations in DataStructures.jl](https://github.com/JuliaCollections/DataStructures.jl/issues/239),
68
-
in `PowerSystems.jl` when creating Forecasts or TimeSeries for your MarketBidCost, you need
69
-
to define your data as in the example or with a very explicit container. Otherwise, it won't
70
-
discern the types properly in the constructor and will return `SortedDict{Any,Any,Base.Order.ForwardOrdering}` which causes the constructor in `PowerSystems.jl` to fail. For instance, you need to define
71
-
the `Dict` with the data as follows:
72
-
73
-
```julia
74
-
# Very verbose dict definition
75
-
data = Dict{DateTime, Array{Array{Tuple{Float64, Float64}, 1}, 1}}()
76
-
for t inrange(initial_time_sys; step =Hour(1), length = window_count)
77
-
data[t] = MY_BID_DATA
78
-
end
79
-
```
80
-
81
122
### Step 3a: Adding Energy Bid TimeSeriesData to the device
82
123
83
124
To add energy market bids time-series to the `MarketBidCost`, use `set_variable_cost!`. The
@@ -86,12 +127,20 @@ arguments for `set_variable_cost!` are:
"comment": "Loss model coefficients. It accepts a linear model with a constant loss (MW) and a proportional loss rate (MW of loss per MW of flow). It also accepts a Piecewise loss, with N segments to specify different proportional losses for different segments.",
0 commit comments