一个例子
m = ; n = ; p = ;
A = randn(m,n); b = randn(m,);
C = randn(p,n); d = randn(p,); e = rand;
cvx_begin quiet %开始
variable x(n)
minimize( norm( A * x - b, ) )
subject to %加入约束条件
C * x == d
norm( x, Inf ) <= e
cvx_end %结束
x %输出结果
一个例子
m = ; n = ; p = ;
A = randn(m,n); b = randn(m,);
C = randn(p,n); d = randn(p,); e = rand;
cvx_begin quiet %开始
variable x(n)
minimize( norm( A * x - b, ) )
subject to %加入约束条件
C * x == d
norm( x, Inf ) <= e
cvx_end %结束
x %输出结果
该资源仅限VIP专享下载