MPC = CDF2MPC(CDF_FILE_NAME)
MPC = CDF2MPC(CDF_FILE_NAME, VERBOSE)
MPC = CDF2MPC(CDF_FILE_NAME, MPC_NAME)
MPC = CDF2MPC(CDF_FILE_NAME, MPC_NAME, VERBOSE)
[MPC, WARNINGS] = CDF2MPC(CDF_FILE_NAME, ...)
Converts an IEEE Common Data Format (CDF) data file into a MATPOWER case
struct.
Input:
CDF_FILE_NAME : name of the IEEE CDF file to be converted
MPC_NAME : (optional) file name to use to save the resulting
MATPOWER case
VERBOSE : 1 (default) to display progress info, 0 otherwise
Output(s):
MPC : resulting MATPOWER case struct
WARNINGS : (optional) cell array of strings containing warning
messages (included by default in comments of MPC_NAME).
The IEEE CDF does not include some data need to run an optimal power
flow. This script creates default values for some of this data as
follows:
Bus data:
Vmin = 0.94 p.u.
Vmax = 1.06 p.u.
Gen data:
Pmin = 0 MW
Pmax = Pg + baseMVA
Gen cost data:
Quadratic costs with:
c2 = 10 / Pg, c1 = 20, c0 = 0, if Pg is non-zero, and
c2 = 0.01, c1 = 40, c0 = 0, if Pg is zero
This should yield an OPF solution "close" to the
existing solution (assuming it is a solved case)
with lambdas near $40/MWh. See 'help caseformat'
for details on the cost curve format.
CDF2MPC may modify some of the data which are "infeasible" for
running optimal power flow. If so, warning information will be
printed out on screen.
Note: Since our code can not handle transformers with variable tap,
you may not expect to get exactly the same power flow solution
using converted data. This is the case when we converted ieee300.cdf.