ams.io.matpower#

MATPOWER parser.

Functions

m2mpc(infile)

Parse a MATPOWER file and return a dictionary containing the parsed data, revised from andes.io.matpower.m2mpc.

mpc2m(mpc, outfile)

Write a MATPOWER mpc dict to a M-file.

mpc2system(mpc, system)

Load an mpc dict into an empty AMS system, revised from andes.io.matpower.mpc2system.

read(system, file)

Read a MATPOWER data file into mpc, and build AMS device elements.

system2mpc(system)

Convert a setup AMS system to a MATPOWER mpc dictionary.

testlines(infile)

Test if this file is in the MATPOWER format.

write(system, outfile[, overwrite])

Export an AMS system to a MATPOWER M-file.