source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/dev/tests-mbg/geometric/test_gp_3.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 380 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function gp |
2 | ||
3 | sdpvar h w d | |
4 | ||
5 | Awall = 1; | |
6 | Afloor = 1; | |
7 | ||
8 | F = set(0.5 < h/w < 2) + set(0.5 < d/w < 2); | |
9 | F = F + set(2*(h*w+h*d) < Awall) + set(w*d < Afloor); | |
10 | ||
11 | sol = solvesdp(F,-(h*w*d)) | |
12 | ||
13 | mbg_asserttolequal(sol.problem,0); | |
14 | mbg_asserttolequal( double(h*w*d), 0.19245008957514, 1e-5); | |
15 | mbg_asserttolequal( double([h w d]), [ 0.28867519677435 0.57735039354827 1.15470006291485], 1e-3); | |
16 |
Note: See TracBrowser
for help on using the repository browser.