cvx_begin quiet

variable X1(2,1);

expression ri(n,1);

variable y;

expression yi(n,1);

expression h(n,1);

minimize sum(h);

subject to

y>=sum_square_abs(X1);

for j=1:n

yi(j)=y-2*Anchors(j,1:2) X1+Anchors(j,1:2)(Anchors(j,1:2))’;
ri(j)=norm(Anchors(j,1:2)-X1’);
h(j)=(bi(j)^2)yi(j)-2bi(j)ri(j);
pow_pos(ri(j),2)<=yi(j);
% norm([2ri(j);yi(j)-1],2) <=yi(j)+1;
end
% sqrt(4*(pow_pos(ri,2))+pow_pos((yi-1),2))<=yi+1;

% sqrt(4*(ri.^2)+(yi-1).^2)<=yi+1;

```
norm([2*X1;y-1],2)<=y+1;
norm([2*ri;yi-1],2)<=yi+1;
cvx_end
```

错误使用 cvx/norm (line 52)

Disciplined convex programming error:

Cannot perform the operation norm( {mixed convex/affine}, 2 )

出错 RSS_socp (line 77)

norm([2*ri;yi-1],2)<=yi+1;