source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@lmi/boundingbox.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 432 bytes |
Line | |
---|---|
1 | function [L,U,x] = boundingbox(F,ops) |
2 | %BOUINDINGBOX Computes bounding box of a SET object |
3 | % |
4 | % [L,U,x] = boundingbox(F) |
5 | |
6 | % Author Johan Löfberg |
7 | % $Id: boundingbox.m,v 1.1 2004/12/08 00:07:15 johanl Exp $ |
8 | |
9 | x = recover(depends(F)); |
10 | |
11 | if nargin < 2 |
12 | ops = sdpsettings('verbose',0); |
13 | end |
14 | |
15 | for i = 1:length(x); |
16 | sol = solvesdp(F,x(i),ops); |
17 | L(i,1) = double(x(i)); |
18 | sol = solvesdp(F,-x(i),ops); |
19 | U(i,1) = double(x(i)); |
20 | end |
Note: See TracBrowser
for help on using the repository browser.