Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
andreArtelt committed May 11, 2020
1 parent c42db45 commit 7158ef7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ceml/optim/cvx.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,12 @@ def solve_aux(self, xcf, tao, x_orig):

# Variables
x = cp.Variable(self.dim)
beta = cp.Variable(self.dim)
s = cp.Variable(len(self.A0s))

# Constants
s_z = np.zeros(len(self.A0s))
s_c = np.ones(len(self.A0s))
z = np.zeros(self.dim)
c = np.ones(self.dim)
I = np.eye(self.dim)

# Build constraints
constraints = []
Expand Down Expand Up @@ -386,12 +383,6 @@ def solve_aux(self, xcf, tao, x_orig):

constraints += [A @ x == a]

# If necessary, construct the weight matrix for the weighted Manhattan distance
Upsilon = None
if self.mad is not None:
alpha = 1. / self.mad
Upsilon = np.diag(alpha)

# Build the final program
f = None
if self.mad is not None: # TODO: Right now, mad != 1 is not supported.
Expand Down

0 comments on commit 7158ef7

Please sign in to comment.