Building Functions using CVX

Good luck.

Actually, i made my example more complicated than it needed to be. The following accomplishes exactly the same thing.

k = 4.14587;
joeblow = ‘x >= k’;
cvx_begin
variable x
minimize(x)
eval(joeblow)
cvx_end

1 Like