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.
The change adds
PrettyPrint
methods toLinearExpression
andConstraintExpression
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 ofLinearExpression
, I could not implement it outside of theLinearExpression
type.