File IO
General Data Formats
PowerModels.parse_file
— Function.PowerModels.parse_json
— Function.Matpower Data Files
The following two methods are the main exported methods for parsing matpower data files:
PowerModels.parse_matpower
— Function.PowerModels.parse_matpower_data
— Function.We also provide the following (internal) helper methods:
PowerModels.standardize_cost_order
— Function.ensures all costs functions are quadratic and reverses their order
PowerModels.update_branch_transformer_settings
— Function.sets all line transformer taps to 1.0, to simplify line models
PowerModels.merge_generator_cost_data
— Function.merges generator cost functions into generator data, if costs exist
PowerModels.merge_bus_name_data
— Function.merges bus name data into buses, if names exist
PowerModels.parse_cell
— Function.PowerModels.parse_matrix
— Function.PowerModels.parse_matlab_data
— Function.PowerModels.split_line
— Function.PowerModels.add_line_delimiter
— Function.PowerModels.extract_assignment
— Function.PowerModels.extract_mpc_assignment
— Function.PowerModels.type_value
— Function.Attempts to determine the type of a string extracted from a matlab file
PowerModels.type_array
— Function.Attempts to determine the type of an array of strings extracted from a matlab file
PowerModels.build_typed_dict
— Function.takes a list of list of strings and turns it into a list of typed dictionaries
PowerModels.extend_case_data
— Function.extends a give case data with typed dictionary data
PowerModels.mp_data_to_pm_data
— Function.converts arrays of objects into a dicts with lookup by "index"