def nonpos2nonneg(nonpos): return NonNeg(-nonpos.expr, constr_id=nonpos.constr_id)
def lower_ineq_to_nonneg(inequality): lhs = inequality.args[0] rhs = inequality.args[1] return NonNeg(rhs - lhs, constr_id=inequality.constr_id)