source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/dev/tests-mbg/sos/test_sos_unc.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 306 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function test_sos_unc |
2 | ||
3 | ||
4 | sdpvar x y a t | |
5 | gamma = sdpvar(1) | |
6 | ||
7 | p = a*x^4 + y^4+x*y + 1+gamma | |
8 | sol = solvesos(set(uncertain(gamma))+set(-1/2 < gamma < 1/2)+set(sos(p - t))+set(ismember(a,[3 4 5]))+set(4.6 > abs(a) > 3.5),-t,[],[a t]) | |
9 | ||
10 | mbg_asserttolequal(sol.problem,0); | |
11 | mbg_asserttolequal(double(t),0.4375,1e-5); |
Note: See TracBrowser
for help on using the repository browser.