source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/dev/tests-mbg/sos/test_sos_matrix_2.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 235 bytes |
Line | |
---|---|
1 | function massive |
2 | |
3 | sdpvar x1 x2 |
4 | P = [1+x1^2 -x1+x2+x1^2;-x1+x2+x1^2 2*x1^2-2*x1*x2+x2^2]; |
5 | [sol,v,Q] = solvesos(set(sos(P))); |
6 | |
7 | diff = clean(v{1}'*Q{1}*v{1}-P,1e-8); |
8 | |
9 | mbg_asserttolequal(sol.problem,0); |
10 | mbg_asserttolequal(diff,[0 0;0 0]); |
Note: See TracBrowser
for help on using the repository browser.