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 (none), 14 years ago

Added original make3d

File size: 380 bytes
Line 
1function gp
2
3sdpvar h w d
4
5Awall  = 1;
6Afloor = 1;
7
8F = set(0.5 < h/w < 2) + set(0.5 < d/w < 2);
9F = F + set(2*(h*w+h*d) < Awall) + set(w*d < Afloor);
10
11sol = solvesdp(F,-(h*w*d))
12
13mbg_asserttolequal(sol.problem,0);
14mbg_asserttolequal( double(h*w*d),  0.19245008957514, 1e-5);
15mbg_asserttolequal( double([h w d]), [ 0.28867519677435   0.57735039354827   1.15470006291485], 1e-3);
16
Note: See TracBrowser for help on using the repository browser.