Skip to content

Commit 684d0d5

Browse files
committed
Fixes bug in K_repr_ax
1 parent 61a66d3 commit 684d0d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: dsp/cone_transforms.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ def K_repr_ax(a: cp.Expression) -> KRepresentation:
204204
assert a.is_convex()
205205
assert a.size == 1
206206

207-
f = cp.Constant(0)
207+
f = cp.Variable(name="f_ax")
208208
t = cp.Variable(name="t_ax")
209209

210-
constraints = [t >= a]
210+
constraints = [t >= a, f == 0]
211211

212212
return KRepresentation(f=f, t=t, constraints=constraints, concave_expr=lambda x: a.value)
213213

0 commit comments

Comments
 (0)