Skip to content

Commit

Permalink
reverting changes in cone matrix stuffing
Browse files Browse the repository at this point in the history
  • Loading branch information
Transurgeon committed Sep 25, 2024
1 parent d05c081 commit e5f5771
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cvxpy/reductions/dcp2cone/cone_matrix_stuffing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e5f5771

Please sign in to comment.