parameters: (problem)
return_statement: return (problem.objective.expr.is_qpwa()
              and not set(['PSD', 'NSD']).intersection(convex_attributes(
                                                       problem.variables()))
              and all((type(c) in (Inequality, NonPos, NonNeg) and c.expr.is_pwl()) or
                      (type(c) in (Equality, Zero) and are_args_affine([c]))
                      for c in problem.constraints))
docstring: Problems with quadratic, piecewise affine objectives,
      piecewise-linear constraints inequality constraints, and
      affine equality constraints are accepted by the reduction.
docstring_summary: Problems with quadratic, piecewise affine objectives,
      piecewise-linear constraints inequality constraints, and
      affine equality constraints are accepted by the reduction.
docstring_tokens: Problems with quadratic piecewise affine objectives piecewise - linear constraints inequality constraints and affine equality constraints are accepted by the reduction .
function: def accepts(problem):
      """
      Problems with quadratic, piecewise affine objectives,
      piecewise-linear constraints inequality constraints, and
      affine equality constraints are accepted by the reduction.
      """
      return (problem.objective.expr.is_qpwa()
              and not set(['PSD', 'NSD']).intersection(convex_attributes(
                                                       problem.variables()))
              and all((type(c) in (Inequality, NonPos, NonNeg) and c.expr.is_pwl()) or
                      (type(c) in (Equality, Zero) and are_args_affine([c]))
                      for c in problem.constraints))
function_tokens: def accepts ( problem ) : return ( problem . objective . expr . is_qpwa ( ) and not set ( [ 'PSD' , 'NSD' ] ) . intersection ( convex_attributes ( problem . variables ( ) ) ) and all ( ( type ( c ) in ( Inequality , NonPos , NonNeg ) and c . expr . is_pwl ( ) ) or ( type ( c ) in ( Equality , Zero ) and are_args_affine ( [ c ] ) ) for c in problem . constraints ) )