Optimal Power Flow
Data parsing
ProxAL.parse_file — Functionparse_file(datafile::String)Parse MATPOWER or PSSE instances using ExaPF's parsers. Return full dataset as Dict{String, Array{Float64, 2}, with entries
- "bus": specifications for all buses in the network
- "branch": specifications for all branches in the network
- "gen": specifications for all generators in the network
- "costs": costs coefficients.
- "baseMVA": baseMVA of the network
ProxAL.RawData — TypeRawDataSpecifies the ACOPF instance data.
baseMVA: imported with ExaPF parserbus_arr: imported with ExaPF parserbranch_arr: imported with ExaPF parsergen_arr: imported with ExaPF parsercostgen_arr: imported with ExaPF parsergenfuel_arr: imported with ExaPF parserpd_arr: read from.Pdfileqd_arr: read from.Qdfilepgmax_arr: read from.Pgmaxfilectgs_arr: read from.Ctgsfile
ProxAL.opf_loaddata — Functionopf_loaddata(
raw::RawData;
time_horizon_start::Int=1,
time_horizon_end::Int=0,
load_scale::Float64=1.0,
ramp_scale::Float64=0.0,
corr_scale::Float64=0.1,
lineOff=Line(),
genOff::Vector{Int}=Int[],
)Loads the multi-period ACOPF instance data from raw with the time horizon defined to be [time_horizon_start, time_horizon_end]. Note that time_horizon_end = 0 indicates as many as possible (the number of columns in raw.pd_arr minus time_horizon_start - 1).
All loads in all time periods will be multiplied by load_scale. The ramp_scale is the factor which multiplies the ramp rate to get generator ramping $r_g$ (see NOTE below). The corr_scale is the factor which multiplies $r_g$ to get generator ramping for corrective control. These are set in ModelInfo. See Model parameters.
lineOff is a transmission line that can be deleted to represent a contingency.
genOff is a vector of generator indices that can be turned off to represent a contingency.
NOTE: If raw.genfuel_arr is undefined for generator $g$, then the ramp rate is set equal to $p_{g}^{max}$. Otherwise, the ramp rate is set based on the genfuel type as follows. coal => 3 wind => 45 solar => 200 ng => 35 nuclear => 20 hydro => 150 default => 3 (same as coal)
All values in MW/min. Taken from: https://www.researchgate.net/post/WhatisthetypicalMWminuterampingcapabilityforeachtypeofreserve