CVX Forum: a community-driven support forum
Latest Categories Search
Home / Uncategorized / Programming error

Programming error

Uncategorized
Sep 24, 2021
N
Nam Đinh
Sep 24, 2021 #1

I have a matlab snippet that uses cvx . but running, the system crashes

cvx_begin
variable t
variable theta
minimize(square(t)*inv_pos(1 - theta));
subject to
0 < theta < 1;
t >= 0;
cvx_end

this is the error

Untitled
Untitled3592×1980 188 KB

M
Mark L. Stone
Sep 24, 2021 #2

You should be using quad_over_lin .

1

Archive of CVX Forum: a community-driven support forum — Generated as a static archive