flips icon indicating copy to clipboard operation
flips copied to clipboard

Pretty printing for expressions

Open florenzen opened this issue 1 year ago • 0 comments

The change adds PrettyPrint methods to LinearExpression and ConstraintExpression that formats the reduced expression in a readable form. Coefficients close to 1 are omitted (i. e. ... + y - ... instead of ... + 1 * y - ...).

Since it needs the private reduce function of LinearExpression, I could not implement it outside of the LinearExpression type.

florenzen avatar Jun 15 '24 18:06 florenzen