'Is problem a quadratic program?'

def is_qp(self):

    for c in self.constraints:
        if (not (isinstance(c, eqc.EqConstraint) or c._expr.is_pwl())):
            return False
    return (self.is_dcp() and self.objective.args[0].is_quadratic())
