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 IARA

In 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)
end
cp(
    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"),
)
1×5 DataFrame
Rowperiodscenarioprofilebg_1bg_2
Int64Int64Int64Float64Float64
11110.50.0
IARA.time_series_dataframe(
    joinpath(PATH_MIN_ACTIVATION, "parent_profile.csv"),
)
1×4 DataFrame
Rowperiodprofilebg_1bg_2
Int64Int64Float64Float64
1110.00.0
IARA.time_series_dataframe(
    joinpath(PATH_MIN_ACTIVATION, "complementary_grouping_profile.csv"),
)
1×5 DataFrame
Rowperiodprofilecomplementary_groupbg_1bg_2
Int64Int64Int64Float64Float64
11110.00.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: BiddingGroup

Closing the case

IARA.close_study!(db)
[2026-12-03 20:20:23.347] [quiver_database_11] [info] Database closed

This page was generated using Literate.jl.