supcon.m
来自「GloptiPoly 3: moments, optimization and 」· M 代码 · 共 33 行
M
33 行
function sc = supcon(M)% @MEAS/SUPCON - Measure support constraint%% The instruction%% [SCEQ,SCGE] = SUPCON(M)%% returns column vectors SCEQ,SCGE of class SUPCON corresponding% respectively to localization equality and inequality constraints% on measure M. The constraints are arranged consistently with the% cell array of dual multipliers returned by function MSOL.% D. Henrion, 27 November 2006if length(M) > 1 error('Please specify only one measure')endim = indmeas(M);sceq = []; for k = 1:length(P.supceq) if indmeas(P.supceq(k)) == im sceq = [sceq; P.supceq(k)]; endendscge = [];for k = 1:length(P.supcge) if indmeas(P.supcge(k)) == im scge = [scge; P.supcge(k)]; endend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?