From 36a48c9b7414e8ba0afe7004d7eed0e6905f01f8 Mon Sep 17 00:00:00 2001 From: rodrigomha Date: Mon, 7 Oct 2024 12:26:38 -0700 Subject: [PATCH 1/2] update typos --- docs/src/how_to/market_bid_cost.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/how_to/market_bid_cost.md b/docs/src/how_to/market_bid_cost.md index 8ca855df06..aec3813ed8 100644 --- a/docs/src/how_to/market_bid_cost.md +++ b/docs/src/how_to/market_bid_cost.md @@ -133,7 +133,7 @@ Currently, time series data only supports natural units for time series data, i. ```@repl market_bid_cost sys = System(100.0, [bus], [generator]) -set_variable_cost!(sys, generator, time_series_data, UnitSystem.NATURAL_ITEMS) +set_variable_cost!(sys, generator, time_series_data, UnitSystem.NATURAL_UNITS) ``` **Note:** `set_variable_cost!` add curves to the `incremental_offer_curves` in the MarketBidCost. @@ -156,5 +156,5 @@ time_series_data = Deterministic(; data = data, resolution = Dates.Hour(1), ) -set_service_bid!(sys, generator, service, time_series_data) +set_service_bid!(sys, generator, service, time_series_data, UnitSystem.NATURAL_UNITS) ``` From 8097e9b34019444e28e370c98d6300d291366818 Mon Sep 17 00:00:00 2001 From: rodrigomha Date: Mon, 7 Oct 2024 12:52:14 -0700 Subject: [PATCH 2/2] update typo on step data --- docs/src/how_to/market_bid_cost.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/src/how_to/market_bid_cost.md b/docs/src/how_to/market_bid_cost.md index aec3813ed8..33174af881 100644 --- a/docs/src/how_to/market_bid_cost.md +++ b/docs/src/how_to/market_bid_cost.md @@ -149,8 +149,10 @@ Similar to adding energy market bids, for adding bids for ancillary services, us ```@repl market_bid_cost service = VariableReserve{ReserveUp}("example_reserve", true, 0.6, 2.0) add_service!(sys, service, get_component(ThermalStandard, sys, "Brighton")) -data = - Dict(Dates.DateTime("2020-01-01") => [650.3, 750.0]) + +psd3 = PiecewiseStepData([0.0, 10.0], [650.3]) +psd4 = PiecewiseStepData([0.0, 10.0], [750.0]) +data = Dict(Dates.DateTime("2020-01-01") => [psd3, psd4]) time_series_data = Deterministic(; name = get_name(service), data = data,