system2mpc#
- ams.io.matpower.system2mpc(system) dict[source]#
Convert data from an AMS system to an mpc dict.
In the
gensection, slack generators preceeds PV generators.Compared to the
andes.io.matpower.system2mpc, this function includes the generator cost data in thegencostsection. Additionally,c2andc1are scaled bybase_mvato match MATPOWER unitMW.- Parameters:
- systemams.core.system.System
AMS system
- Returns:
- mpc: dict
MATPOWER mpc dict