matpower
matpower copied to clipboard
callback functions need mechanism to distinguish PF vs OPF
Since some extensions (e.g toggle_softlims) are only relevant for OPF problems and not for simple power flow problems, the callbacks need a canonical way to determine the context (PF or OPF) in which they are being called.