mpc2system#
- ams.io.matpower.mpc2system(mpc: dict, system) bool [source]#
Load an mpc dict into an empty AMS system.
This function is revised from
andes.io.matpower.mpc2system
.Compared to the original one, this function includes the generator cost data.
Note that mbase in mpc is converted to Sn, but it is not actually used in MATPOWER nor AMS.
- Parameters:
- systemandes.system.System
Empty system to load the data into.
- mpcdict
mpc struct names : numpy arrays
- Returns:
- bool
True if successful, False otherwise.