From e5f57710c4576d9b9d217db8e99fa7d8c957d411 Mon Sep 17 00:00:00 2001 From: William Zijie Zhang <89562186+Transurgeon@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:36:09 +0000 Subject: [PATCH] reverting changes in cone matrix stuffing --- cvxpy/reductions/dcp2cone/cone_matrix_stuffing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cvxpy/reductions/dcp2cone/cone_matrix_stuffing.py b/cvxpy/reductions/dcp2cone/cone_matrix_stuffing.py index 4a032e90c0..98cc464738 100644 --- a/cvxpy/reductions/dcp2cone/cone_matrix_stuffing.py +++ b/cvxpy/reductions/dcp2cone/cone_matrix_stuffing.py @@ -326,9 +326,7 @@ def accepts(self, problem): def stuffed_objective(self, problem, extractor): # concatenate all variables in one vector boolean, integer = extract_mip_idx(problem.variables()) - x = Variable(extractor.x_length) - x.boolean_idx = boolean - x.integer_idx = integer + x = Variable(extractor.x_length, boolean=boolean, integer=integer) if self.quad_obj: # extract to 0.5 * x.T * P * x + q.T * x + r expr = problem.objective.expr.copy()