Min activation Bid - Building
The data for this case is available in the folder
data/case_4
We'll start by importing the necessary packages.
using Dates
using Quiver
using DataFrames
using IARAIn this tutorial, we will start with the Case 3 elements and create a case with a minimum activation level for a Bidding Group.
Original Case Recap
In the original case we had two Bidding Groups, one with a profile bid and the other with an independent bid. Running the MARKET_CLEARING mode, we analyzed the effect of the profile bid in the market.
Changes for this tutorial
In this tutorial, we will add a minimum activation level for the Bidding Group with the profile bid.
Loading case
Now let's copy the base case to a new folder and load it.
const PATH_ORIGINAL = joinpath(@__DIR__, "data", "case_3")
const PATH_MIN_ACTIVATION = joinpath(@__DIR__, "data", "case_4")
if !isdir(PATH_MIN_ACTIVATION)
mkdir(PATH_MIN_ACTIVATION)
endcp(
joinpath(PATH_ORIGINAL, "study.iara"),
joinpath(PATH_MIN_ACTIVATION, "study.iara");
force = true,
)
db = IARA.load_study(PATH_MIN_ACTIVATION; read_only = false);Quiver.Database(Ptr{Quiver.C.quiver_database} @0x000000001e08a8e0)Minimum Activation Level Time series
In the data/case_4 folder, we have a time series files for the minimum activation level for the Bidding Group with the profile bid. Let's take a quick look at the file and load it into the database.
IARA.time_series_dataframe(
joinpath(PATH_MIN_ACTIVATION, "minimum_activation_level_profile.csv"),
)| Row | period | scenario | profile | bg_1 | bg_2 |
|---|---|---|---|---|---|
| Int64 | Int64 | Int64 | Float64 | Float64 | |
| 1 | 1 | 1 | 1 | 0.5 | 0.0 |
IARA.time_series_dataframe(
joinpath(PATH_MIN_ACTIVATION, "parent_profile.csv"),
)| Row | period | profile | bg_1 | bg_2 |
|---|---|---|---|---|
| Int64 | Int64 | Float64 | Float64 | |
| 1 | 1 | 1 | 0.0 | 0.0 |
IARA.time_series_dataframe(
joinpath(PATH_MIN_ACTIVATION, "complementary_grouping_profile.csv"),
)| Row | period | profile | complementary_group | bg_1 | bg_2 |
|---|---|---|---|---|---|
| Int64 | Int64 | Int64 | Float64 | Float64 | |
| 1 | 1 | 1 | 1 | 0.0 | 0.0 |
IARA.link_time_series_to_file(
db,
"BiddingGroup";
minimum_activation_level_profile = "minimum_activation_level_profile",
parent_profile = "parent_profile",
complementary_grouping_profile = "complementary_grouping_profile",
)[2026-12-03 20:20:23.345] [quiver_database_11] [info] Updated time series files for collection: BiddingGroupClosing the case
IARA.close_study!(db)[2026-12-03 20:20:23.347] [quiver_database_11] [info] Database closedThis page was generated using Literate.jl.