pwrs.mips.mplinsolve#

pwrs.mips.mplinsolve.mplinsolve(A, b, solver='', opt=None)[source]#

Solve A @ x = b using a MATPOWER-compatible backend name.

LU3 aliases select SuperLU. LU, LU4 and LU5 aliases select UMFPACK; pwrs intentionally does not distinguish the MATLAB four- and five-output LU forms. PARDISO and KLU select their corresponding optional sparse direct solvers.

opt is retained only for MATPOWER call compatibility.

Parameters:
  • A (object)

  • b (object)

  • solver (str)

  • opt (object | None)

Return type:

LinearSolution