source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@lmi/convertsocp.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 464 bytes |
Line | |
---|---|
1 | function [F,changed] = convertsocp(F) |
2 | %catsdp Internal function: converts SOCP to LMI |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: convertsocp.m,v 1.3 2005/02/04 10:10:26 johanl Exp $ |
6 | |
7 | changed = 0; |
8 | Counter = size(F.clauses,2); |
9 | for i = 1:Counter |
10 | if (F.clauses{i}.type==4) |
11 | changed=1; |
12 | xy = F.clauses{i}.data; |
13 | y = xy(1); |
14 | x = xy(2:end); |
15 | F.clauses{i}.data = [y x';x eye(length(x))*y]; |
16 | F.clauses{i}.type = 1; |
17 | end |
18 | end |
19 |
Note: See TracBrowser
for help on using the repository browser.