if constraint.lower_bound is None and constraint.upper_bound is None:
                raise ConvOptError('Constraints must have at least one bound')
            elif constraint.lower_bound is None:
                solver_cons.append(expr <= constraint.upper_bound)
            elif constraint.upper_bound is None: