Reading Input Files
GenX.load_inputs
— Methodload_inputs(setup::Dict,path::AbstractString)
Loads various data inputs from multiple input .csv files in path directory and stores variables in a Dict (dictionary) object for use in model() function
inputs: setup - dict object containing setup parameters path - string path to working directory
returns: Dict (dictionary) object containing all data inputs
Fuels Data
GenX.load_fuels_data!
— Methodload_fuels_data!(setup::Dict, path::AbstractString, inputs::Dict)
Read input parameters related to fuel costs and CO$_2$ content of fuels
Generators Input Data
GenX.load_generators_data!
— Methodload_generators_data!(setup::Dict, path::AbstractString, inputs_gen::Dict, fuel_costs::Dict, fuel_CO2::Dict)
Function for reading input parameters related to electricity generators (plus storage and flexible demand resources)
Variability of Generators' Outputs
GenX.load_generators_variability!
— Methodload_generators_variability!(setup::Dict, path::AbstractString, inputs::Dict)
Read input parameters related to hourly maximum capacity factors for generators, storage, and flexible demand resources
Load Data
GenX.load_load_data!
— Methodload_load_data!(setup::Dict, path::AbstractString, inputs::Dict)
Read input parameters related to electricity load (demand)
GenX.prevent_doubled_timedomainreduction
— Methodprevent_doubled_timedomainreduction(path::AbstractString)
This function prevents TimeDomainReduction from running on a case which already has more than one Representative Period or has more than one Sub_Weight specified.
Transmission Network
GenX.load_network_map_from_list
— Methodload_network_map_from_list(network_var::DataFrame, Z, L, list_columns)
Loads the network map from a list-style interface
..., Network_Lines, Origin_Zone, Destination_Zone, ...
1, 1, 2,
2, 1, 3,
GenX.load_network_map_from_matrix
— Methodload_network_map_from_matrix(network_var::DataFrame, Z, L)
Loads the network map from a matrix-style interface
..., Network_Lines, z1, z2, z3, ...
1, 1, -1, 0,
2, 1, 0, -1,
This is equivalent to the list-style interface where the zone zN with entry +1 is the starting node of the line and the zone with entry -1 is the ending node of the line.
Minimum Capacity Requirements
GenX.load_minimum_capacity_requirement!
— Methodload_minimum_capacity_requirement!(path::AbstractString, inputs::Dict, setup::Dict)
Read input parameters related to mimimum capacity requirement constraints (e.g. technology specific deployment mandates)
Capacity Reserve Margin
GenX.load_cap_reserve_margin!
— Methodload_cap_reserve_margin!(setup::Dict, path::AbstractString, inputs::Dict)
Read input parameters related to planning reserve margin constraints
GenX.load_cap_reserve_margin_trans!
— Methodload_cap_reserve_margin_trans!(setup::Dict, inputs::Dict, network_var::DataFrame)
Read input parameters related to participation of transmission imports/exports in capacity reserve margin constraint.
CO$_2$ Emissions Cap
GenX.load_co2_cap!
— Methodload_co2_cap!(setup::Dict, path::AbstractString, inputs::Dict)
Read input parameters related to CO$_2$ emissions cap constraints
Energy Share Requirement
GenX.load_energy_share_requirement!
— Methodload_energy_share_requirement!(setup::Dict, path::AbstractString, inputs::Dict)
Read input parameters related to mimimum energy share requirement constraints (e.g. renewable portfolio standard or clean electricity standard policies)
Mapping Representative Time Periods
GenX.load_period_map!
— Methodload_period_map!(setup::Dict, path::AbstractString, inputs::Dict)
Read input parameters related to mapping of representative time periods to full chronological time series
Functions for developers
Standardized loading of dataframes from CSV files
GenX.extract_matrix_from_dataframe
— Methodextract_matrix_from_dataframe(df::DataFrame, columnprefix::AbstractString)
Finds all columns in the dataframe which are of the form columnprefix_[Integer], and extracts them in order into a matrix. The function also checks that there's at least one column with this prefix, and that all columns numbered from 1...N exist.
This is now acceptable:
ESR_1, other_thing, ESR_3, ESR_2,
0.1, 1, 0.3, 0.2,
0.4, 2, 0.6, 0.5,
GenX.load_dataframe
— Methodload_dataframe(path::AbstractString)
Attempts to load a dataframe from a csv file with the given path. If it's not found immediately, it will look for files with a different case (lower/upper) in the file's basename.