qcqp icon indicating copy to clipboard operation
qcqp copied to clipboard

AttributeError: module 'cvxpy' has no attribute 'affine_prod'

Open Zeinab-E opened this issue 3 years ago • 0 comments

Hi, I ran the example in the README.md, but I encountered the following error.

AttributeError Traceback (most recent call last) in () 15 16 # Create a QCQP handler. ---> 17 qcqp = QCQP(prob) 18 19 # Solve the SDP relaxation and get a starting point to a local method

2 frames /usr/local/lib/python3.7/dist-packages/cvxpy/utilities/quadratic.py in get_coeffs(self, expr) 45 elif expr.is_affine(): 46 return self._coeffs_affine(expr) ---> 47 elif isinstance(expr, cvx.affine_prod): 48 return self._coeffs_affine_prod(expr) 49 elif isinstance(expr, cvx.quad_over_lin):

AttributeError: module 'cvxpy' has no attribute 'affine_prod'

I would greatly appreciate it if you could help me on this matter.

Zeinab-E avatar Sep 22 '21 20:09 Zeinab-E