pwrs.core.printpf#
- pwrs.core.printpf.printpf(*args, nargout=None)[source]#
Pretty-print MATPOWER power flow or OPF results.
It accepts either a results struct and a fd, or the expanded
baseMVA, bus, gen, branch, ...argument form, then formats the standard system summary, bus, generator, branch, and limit information for stdout output.- Parameters:
*args – MATPOWER-style
printpfinputs, either as a results struct or as the expanded numeric argument list.nargout (int, optional) – MATLAB compatibility flag.
printpfdoes not return values.
Examples
The following calls are supported:
import io buf = io.StringIO() printpf(results) printpf(results, buf) printpf(results, buf, mpopt) printpf(baseMVA, bus, gen, branch, f, success, et) printpf(baseMVA, bus, gen, branch, f, success, et, buf) printpf(baseMVA, bus, gen, branch, f, success, et, buf, mpopt) result = buf.getvalue()
- Returns:
This function prints formatted output and does not return a value.
- Return type:
None
- Parameters:
args (Any)
nargout (int | None)