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. addConstrs and obj.e_str += '...' should show eval, while untouched items show codegen.

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_source

per-item source string.