andes.interop.matpower#

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()

Functions

from_matpower(m, varname[, system])

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

require_matpower(f)

Decorator for functions that require matpower.

to_matpower(m, varname, system)

Send an ANDES case to a running MATLAB instance.