data_sampler

Functions

append_margin_profiles(pq_profiles, max_s, ...)

Add profiles for vertical shifts needed due to discretization.

check_margins(max_s, p, dp, dq, no_samples)

Check if new vertical shifts should be given due to the descritization.

combine_profiles(profiles, key_order_dg, ...)

Combine profiles from DGs and Loads.

conv_profile_creation(dp, dq, net[, ...])

Create profiles for convolution simulations.

conv_profile_creation_sq(dp, dq, net[, ...])

Create square shaped profiles for convolution simulations.

create_all_fsp_samples(dp, dq, fsps, ...)

Create all FSP samples for the Convolution based simulations.

create_all_fsp_samples_sq(dp, dq, fsps, ...)

Create all FSP samples for the Convolution based simulations.

create_load_samples(no_samples, net, ...)

Creation of {no_samples} of new [P, Q] for each load FSP.

create_samples(no_samples, net_sgen, ...[, ...])

Creation of {no_samples} of new [P, Q] for each DG FSP.

get_fsps(comps, comp_no_list)

Get important information for FSPs.

get_fsps_with_idx(comps, comp_no_list)

Get important information for FSPs.

get_non_linear_comp(comps, non_linear_no)

Get names of not linear FSPs.

get_oltcs(comps, comp_no_list)

Get important information for FSPs.

profile_creation(no_samples, net, ...[, ...])

Creation of {no_samples} of new [P, Q] for each FSP.

profile_creation_bf(dp, dq, net[, services, ...])

Creation of {no_samples} of new [P, Q] for each FSP for the Brute Force case.

sample_from_rng(distribution, no_samples_dg, ...)

Based on the type of distribution, this function generates {no_samples_dg} for the flexibility activations which do not yet concern for the limits of each FSP and will later be applied on each FSP.

sample_fsp_thorough_points(fsp, dp, dq)

Sample FSP shifts for all spectrum in dp, dq resolution.

sample_fsp_thorough_points_sq(fsp, dp, dq)

Sample FSP shifts for all spectrum in dp, dq resolution.

sample_new_load_point(loads, random_p, ...)

This function is called to apply the generated random shifts on Load FSPs.

sample_new_non_mp_point(sgen, random_p, ...)

This function is called when keep_mp is false for DG FSPs.

sample_new_point(sgen, random_p, no_samples)

This function is called when the keep_mp is true for DG FSPs.

sample_non_lin_fsp(fsp, dp, dq)

Get the shifts for the non linear FSPs (this can be modified to also offer different scenarios for non-linear FSPs).