m2mpc#

andes.io.matpower.m2mpc(infile: str) dict[source]#

Parse MATPOWER file and return a dictionary with the data.

Supported fields include

  • baseMVA

  • bus

  • bus_names

  • gen

  • branch

  • gencost (parsed but not used)

  • areas (parsed but not used)

Parameters:
infilestr

Path to the MATPOWER file.

Returns:
dict

mpc struct names : numpy arrays