Rev | Line | |
---|
[37] | 1 | function [F_struc,F_blksz,G_struc,G_blksz] = sedumi2maxdet(F_struc,K) |
---|
| 2 | %SEDUMI2MAXDET Internal function to convert SeDuMi structure to format needed in MAXDET |
---|
| 3 | |
---|
| 4 | % Author Johan Löfberg |
---|
| 5 | % $Id: sedumi2maxdet.m,v 1.2 2004/07/02 08:17:32 johanl Exp $ |
---|
| 6 | |
---|
| 7 | switch K.m |
---|
| 8 | case 0 |
---|
| 9 | G_struc = []; |
---|
| 10 | G_blksz = []; |
---|
| 11 | F_struc = F_struc; |
---|
| 12 | F_blksz = [repmat(1,1,K.l) K.s]; |
---|
| 13 | case 1 |
---|
| 14 | G_struc = F_struc(K.l,:); |
---|
| 15 | G_blksz = [1]; |
---|
| 16 | F_blksz = [repmat(1,1,K.l-1) K.s]; |
---|
| 17 | F_struc = [F_struc(1:1:K.l-1,:);F_struc(K.l+1:1:end,:)]; |
---|
| 18 | otherwise |
---|
| 19 | G_struc = F_struc(end-K.s(end)^2+1:end,:); |
---|
| 20 | G_blksz = K.s(end); |
---|
| 21 | F_blksz = [repmat(1,1,K.l) K.s(1:end-1)]; |
---|
| 22 | F_struc = F_struc(1:end-K.s(end)^2,:); |
---|
| 23 | end |
---|
| 24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.