The ﬁve callback stages currently deﬁned by Matpower are summarized in
Table 7-4:Callback Functions
| name || |
| ext2int || |
…from ext2int immediately after case
data is converted from external to
Check consistency of input data,
convert to internal indexing.
| formulation || |
…from opf after OPF Model (om)
object is initialized with standard
Modify OPF formulation, by adding
user-deﬁned variables, constraints,
| int2ext || |
…from int2ext immediately before
case data is converted from internal
back to external indexing.
back to external indexing, populate
any additional ﬁelds in the results
| printpf || |
…from printpf after pretty-printing
the standard OPF output.
Pretty-print any results not included
in standard OPF.
| savecase || |
…from savecase after printing all of
the other case data to the ﬁle.
Write non-standard case struct ﬁelds
to the case ﬁle.