mpc2system#
- ams.io.matpower.mpc2system(mpc: dict, system) bool[source]#
Load an mpc dict into an empty AMS system, revised from andes.io.matpower.mpc2system.
Note that mbase in mpc is converted to Sn, but it is not actually used in MATPOWER nor AMS.
In converted AMS system, StaticGen idxes are 1-based, while the sequence follow the order of the original MATPOWER data.
- Parameters:
- systemams.system.System
Empty system to load the data into.
- mpcdict
mpc struct names : numpy arrays
- Returns:
- bool
True if successful, False otherwise.