Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Market Bid docs typos #1200

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions docs/src/how_to/market_bid_cost.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -149,12 +149,14 @@ 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,
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)
```
Loading