flips
flips copied to clipboard
Pretty printing for expressions
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.