Interoperability with MATPOWER through matpower-pip.

Please install the Python package matpower and configure MATLAB or Octave, following the instructions at matpower-pip.

To create a MATLAB/Octave instance, do:

from andes.interop.matpower import start_instance

m = start_instance()


from_matpower(m, varname[, system])

Retrieve a MATPOWER mpc case from a MATLAB/Octave instance.


Decorator for functions that require matpower.

to_matpower(m, varname, system)

Send an ANDES case to a running MATLAB instance.