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
mpopt2qpopthelper by selecting the effective QP solver algorithm and extracting the corresponding backend option sub-struct frommpopt.- 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 frommpopt.
- Returns:
Backend-neutral QP options dict containing the selected algorithm and its solver-specific options.
- Return type:
dict