ACOPF1.formulation_summary#
- ACOPF1.formulation_summary(return_rows: bool = False)#
Print (or return) a per-item table of the live formulation source.
Useful for verifying which path each opt element runs through after custom edits — e.g.
addConstrsandobj.e_str += '...'should showeval, while untouched items showcodegen.- Parameters:
- return_rowsbool, optional
If True, return the list of
(kind, name, source, e_str_excerpt)tuples instead of printing. Default False (prints).
See also
ams.opt.OptzBase.formulation_sourceper-item source string.