pwrs.core.dcopf#
- pwrs.core.dcopf.dcopf(*args, nargout=1)[source]#
Solve a DC optimal power flow.
This is a thin wrapper around
opf()that setsmodelto"DC"before dispatching.- Parameters:
*args – Inputs accepted by
opf().nargout (int, optional) – Number of outputs to emulate from the MATLAB interface.
- Returns:
Outputs from
opf()for the DC model.- Return type:
dict or tuple