pwrs.mp_opt_model.mpopt2qpopt#

pwrs.mp_opt_model.mpopt2qpopt.mpopt2qpopt(mpopt, model='', alg='')[source]#

Translate MATPOWER options into QP solver options.

Mirrors MP-Opt-Model’s mpopt2qpopt helper by selecting the effective QP solver algorithm and extracting the corresponding backend option sub-struct from mpopt.

Parameters:
  • mpopt (dict) – MATPOWER options struct.

  • model (str, optional) – Optimization model type. Present for interface compatibility.

  • alg (str, optional) – Explicit solver selection, or "opf.dc"/empty to derive the solver from mpopt.

Returns:

Backend-neutral QP options dict containing the selected algorithm and its solver-specific options.

Return type:

dict