simulation#

Functions

add_bus(p_s, bus, sub_system, used_buses)

Add buses to the sub system

find_sub_systems(p_s, curr_time)

Function that finds the independent sub systems of the given power system and adds them to the sub_systems list of the power system

merge_monte_carlo_child_network_history(...)

Merges the lists used for history variables from the Monte Carlo simulation

merge_monte_carlo_comp_history(power_system, ...)

Merges the lists used for component history variables from the Monte Carlo simulation

merge_monte_carlo_history(power_system, ...)

Merges the Monte Carlo history from all the iterations in the simulation

plot_obj_history(obj_list, time_unit, save_dir)

Plots the history of a list of objects in the power system

prepare_system(power_system, start_time, ...)

Prepares the power system for a simulation by:

reset_system(power_system, save_flag)

Resets the power system

save_obj_history(obj_list, time_unit, save_dir)

Saves the history of a list of objects in the power system

save_sequence_history(power_system, ...)

Saves the history from an sequence

set_slack(p_s, sub_system)

Function that sets the slack bus of the power system

try_to_add_connected_lines(p_s, bus, ...)

Add lines to the sub system

update_backup_lines_between_sub_systems(p_s, ...)

Function that updates the backup lines between the sub systems of the power system if they exist and are not failed

update_sub_system_slack(p_s)

Function that updates the current slack bus of the sub systems of the power system

Classes

Simulation(power_system[, random_seed])

Common class for simulation