filter_eliminatation.m
来自「matlab波形优化算法经常要用到的matlab toolbox工具箱:yalm」· M 代码 · 共 22 行
M
22 行
function [F_xw,F_robust] = filter_eliminatation(F_xw,w,order)
F_robust = set([]);
Fvars = getvariables(F_xw);
wvars = getvariables(w);
[mt,vt] = yalmip('monomtable');
if any(sum(mt(Fvars,wvars),2)>order)
for i = 1:length(F_xw)
Fi = sdpvar(F_xw(i));
if any(sum(mt(getvariables(Fi),wvars),2)>order)
[BilinearizeringConstraints,failure] = deriveBilinearizing(Fi,w,order);
if failure
error('Cannot get rid of nonlinear uncertainty in uncertain SDP')
else
% remove all the violating terms from the expression
F_xw(i) = clear_poly_dep(F_xw(i),w,order);
% and add the constraint that actually does this
F_robust = F_robust + BilinearizeringConstraints;
end
end
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?